diff --git a/.gitignore b/.gitignore index add57be..0976324 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +/.vs diff --git a/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs b/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs index 662d591..811e4cc 100644 --- a/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs +++ b/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs @@ -157,15 +157,16 @@ private void CheckWeather() var currentWeatherId = GetCurrentWeatherId(); - if (_selectedWeatherId != currentWeatherId) + if (_selectedWeatherId == currentWeatherId) { - if (_prevWeatherId == _selectedWeatherId) - Block.TriggerAction(0); + Block.TriggerAction(0); return; } - - if (_prevWeatherId != currentWeatherId) + else + { Block.TriggerAction(1); + return; + } _prevWeatherId = currentWeatherId; } @@ -204,4 +205,4 @@ public void UpdateDetailedInfo(StringBuilder info, int slot, long entityId, floa info.AppendFormat(MySpaceTexts.EventOutputInfo, slot); } } -} \ No newline at end of file +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d99679 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Purpose +This mod for Space Engineers Beta introduces new event types for the Event Controller block. Now you can trigger different events based on thruster power, natural gravity, and more! With this mod, you'll be able to create more complex and interesting space scenarios. Check it out and make your space scenes even more immersive. + +## Event Types +| Name | Value | +| ------------ | ------------ | +| Current Weather | Type | +| Projection Built | % | +| Other Event Controller Triggered | none | + +## Contributing + +**Suggestions** +You can always suggest your own ideas for the new event types in comments down below! + +**Crowdfunding** +We're looking for translations on our [Crowdin](https://crowdin.com/project/se-more-events) + +**Developers** +Mod source code is available on [Github](https://github.com/zznty/SeMoreEvents)