static CIEnumerable Transpiler(CIEnumerable cins, ILGenerator ilg) { int ldc25 = 0; return(cins.ciReplace(ci => ci.isLDC(25f) && ++ldc25 == 2, _codeForCfgVar <float, GrapplingArmUpgraded>(25f, nameof(Main.config.hookSpeed), ilg))); }
static CIEnumerable Transpiler(CIEnumerable cins) => cins.ciReplace(ci => ci.isLDC(90f), OpCodes.Ldarg_0, emitCall <Func <GrapplingHook, float> >(getAngle));
static CIEnumerable transpiler_dayNightSpeed(CIEnumerable cins) => cins.ciReplace(ci => ci.isLDC(1.0f), CIUtils.speed);