Ejemplo n.º 1
0
 static void HandleOuterEdgesFirst(ExplosionCE __instance, int ___startTick, List <IntVec3> ___cellsToAffect)
 {
     HandleProtected(___cellsToAffect, __instance, ___startTick, GetDamage);
 }
Ejemplo n.º 2
0
 private static int GetDamage(ExplosionCE explosion, IntVec3 cell)
 {
     return(explosion.GetDamageAmountAtCE(cell));
 }
 static bool CheckCellShielded(ExplosionCE __instance, IntVec3 c)
 {
     return(!TryBlock(__instance.Map, __instance.TrueCenter(), __instance.damType, GetDamage(__instance, c), PositionUtility.ToVector3(c)));
 }
 internal static bool Prefix(ExplosionCE __instance, ref float __result, IntVec3 c)
 {
     __result = __instance.GetArmorPenetrationAtCE(c);
     return(false);
 }
 internal static bool Prefix(ExplosionCE __instance, ref int __result, IntVec3 c)
 {
     __result = __instance.GetDamageAmountAtCE(c);
     return(false);
 }
Ejemplo n.º 6
0
 static bool Prefix(ExplosionCE __instance, IntVec3 c)
 {
     return(c.InBounds(__instance.Map) && !TryBlock(__instance, __instance.damType, __instance.damAmount, c));
 }