Skip to content

Commit

Permalink
v.4.4.5 addendum
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Nov 19, 2023
1 parent fc43bd2 commit 4c996bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified Assemblies/ZombieLand.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Source/ContaminationPatchesFilth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ static Thing FilthContamination(Thing newThing)
{
if (filthCell.IsValid)
{
var oldMapIndex = newThing.mapIndexOrState;
var savedMapIndex = newThing.mapIndexOrState;
newThing.mapIndexOrState = (sbyte)filthCell.mapInt.Index;
ZombieSettings.Values.contamination.filthEqualize.Equalize((LocalTargetInfo)filthCell, newThing);
newThing.mapIndexOrState = oldMapIndex;
newThing.mapIndexOrState = savedMapIndex;
}
if (filthSource != null)
{
Expand Down
3 changes: 2 additions & 1 deletion Source/ContaminationPatchesMineable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ static Thing MakeThing(ThingDef def, ThingDef stuff, Mineable mineable)
if (mineableMap != null)
{
var contamination = mineableMap.GetContamination(mineable.Position);
var savedMapIndex = thing.mapIndexOrState;
thing.mapIndexOrState = (sbyte)mineableMap.Index;
thing.AddContamination(contamination, ZombieSettings.Values.contamination.destroyMineableAdd);
thing.mapIndexOrState = -1;
thing.mapIndexOrState = savedMapIndex;
}
return thing;
}
Expand Down

0 comments on commit 4c996bf

Please sign in to comment.