Skip to content

Commit

Permalink
Fix initially dormant mech ammo beacons
Browse files Browse the repository at this point in the history
65ff968 mistakenly turned off mech ammo beacons for clusters that start off dormant.
Fix the logic so that beacons in such clusters correctly drop ammo once the cluster is awake and other conditions are met.
  • Loading branch information
mszabo-wikia committed Oct 23, 2024
1 parent 4462150 commit bc90464
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified Assemblies/CombatExtendedLoader.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public bool IsActive
return false;
}

if (parent.TryGetComp<CompCanBeDormant>()?.Awake ?? false)
if (!(parent.TryGetComp<CompCanBeDormant>()?.Awake ?? true))
{
return false;
}
Expand Down

0 comments on commit bc90464

Please sign in to comment.