mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 22:53:33 +08:00
Fix water pump anywhere
This commit is contained in:
@@ -49,9 +49,9 @@ public static class PlanetPatch
|
|||||||
{
|
{
|
||||||
var matcher = new CodeMatcher(instructions, generator);
|
var matcher = new CodeMatcher(instructions, generator);
|
||||||
matcher.MatchForward(false,
|
matcher.MatchForward(false,
|
||||||
new CodeMatch(instr => instr.opcode == OpCodes.Ldc_I4_S && instr.OperandIs(23))
|
new CodeMatch(instr => instr.opcode == OpCodes.Ldc_I4_S && instr.OperandIs((int)EBuildCondition.NeedWater))
|
||||||
).Advance(1).MatchForward(false,
|
).Advance(1).MatchForward(false,
|
||||||
new CodeMatch(instr => instr.opcode == OpCodes.Ldc_I4_S && instr.OperandIs(23))
|
new CodeMatch(instr => instr.opcode == OpCodes.Ldc_I4_S && instr.OperandIs((int)EBuildCondition.NeedWater))
|
||||||
);
|
);
|
||||||
matcher.Repeat(codeMatcher =>
|
matcher.Repeat(codeMatcher =>
|
||||||
{
|
{
|
||||||
@@ -60,6 +60,7 @@ public static class PlanetPatch
|
|||||||
return matcher.InstructionEnumeration();
|
return matcher.InstructionEnumeration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class TerraformAnyway
|
private static class TerraformAnyway
|
||||||
{
|
{
|
||||||
private static Harmony _patch;
|
private static Harmony _patch;
|
||||||
|
|||||||
Reference in New Issue
Block a user