Exemplo n.º 1
0
 /// <summary>
 /// Transpiles Emit to change the amount emitted (grr consts)
 /// </summary>
 internal static IEnumerable <CodeInstruction> Transpiler(
     IEnumerable <CodeInstruction> method)
 {
     return(PPatchTools.ReplaceConstant(method, 0.1f, TraitTuning.FART_AMOUNT,
                                        true));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Transpiles InitializeStates to convert the 200ms to 1000ms. Note that postfixing
 /// and swapping is not enough, Update mutates the buckets for the singleton state
 /// machine updater, CLAY PLEASE.
 /// </summary>
 internal static TranspiledMethod Transpiler(TranspiledMethod method)
 {
     return(PPatchTools.ReplaceConstant(method, (int)UpdateRate.SIM_200ms, (int)
                                        UpdateRate.SIM_1000ms, true));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Transpiles the constructor to resize the array to 26 slots by default.
 /// Most decor providers have 1 or 2 radius which is 1 and 9 tiles respectively,
 /// 26 handles up to 3 without a resize.
 /// </summary>
 internal static TranspiledMethod Transpiler(TranspiledMethod instructions)
 {
     return(PPatchTools.ReplaceConstant(instructions, 512, 26, true));
 }