Skip to content

Commit

Permalink
Unbreak which blueprint list we draw fungal infection from
Browse files Browse the repository at this point in the history
  • Loading branch information
Αθηνα 𒂗𒃶𒌌𒀭𒈾 Washington committed Jun 12, 2022
1 parent 7b5889b commit d0425be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public static class Utility {
Color = "gold";
}
var index = ColorIndices[Color.ToLower()];
if (index < 0 || index > SporePuffer.InfectionList.Count) {
MaybeLog($"Index {index} out of bounds in GetFungalInfectionFromColor (max is {SporePuffer.InfectionList.Count})");
if (index < 0 || index > SporePuffer.InfectionObjectList.Count) {
MaybeLog($"Index {index} out of bounds in GetFungalInfectionFromColor (max is {SporePuffer.InfectionObjectList.Count})");
index = 0;
}
return Algorithms.RandomShuffle(SporePuffer.InfectionList)[index];
return Algorithms.RandomShuffle(SporePuffer.InfectionObjectList)[index];
}

public static void Puff(string color, Cell cell, GameObject actor, GameObject source = null, bool includeCenter = false) {
Expand Down

0 comments on commit d0425be

Please sign in to comment.