Skip to content

Commit

Permalink
v2.2.5; fixes spawning of events/dark-only in combination with dynami…
Browse files Browse the repository at this point in the history
…c threats
  • Loading branch information
pardeike committed Jul 13, 2021
1 parent d9b5b0e commit 15363c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Binary file modified 1.2/Assemblies/ZombieLand.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>net.pardeike.rimworld.mod.zombieland</identifier>
<version>2.2.4.0</version>
<version>2.2.5.0</version>
<targetVersions>
<li>1.0.0</li>
<li>1.1.0</li>
Expand Down
7 changes: 2 additions & 5 deletions Source/TickManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,8 @@ public bool CanHaveMoreZombies()

public void IncreaseZombiePopulation()
{
if (ZombieSettings.Values.useDynamicThreatLevel == false)
{
if (GenDate.DaysPassedFloat < ZombieSettings.Values.daysBeforeZombiesCome) return;
if (ZombieSettings.Values.spawnWhenType == SpawnWhenType.InEventsOnly) return;
}
if (GenDate.DaysPassedFloat < ZombieSettings.Values.daysBeforeZombiesCome) return;
if (ZombieSettings.Values.spawnWhenType == SpawnWhenType.InEventsOnly) return;

if (populationSpawnCounter-- < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/ZombieLand.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<OutputPath>..\1.2\Assemblies\</OutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Version>2.2.4.0</Version>
<Version>2.2.5.0</Version>
<Copyright>Copyright © 2017</Copyright>
</PropertyGroup>

Expand Down

0 comments on commit 15363c3

Please sign in to comment.