private float FinalizeDefendersPoints() { Faction faction = mapParent.Faction; Tile tile = Find.WorldGrid[mapParent.Tile]; float points = ((WarUtility.ThreatRangeFor(faction.def.techLevel).RandomInRange + GetLeaderPoints(faction)) * WarUtility.GetMultiplierFor(faction.def.techLevel)) * WarUtility.GetMultiplierFor(tile.hilliness); return(points); }
private float FinalizeAttackPoints(Caravan caravan) { Faction faction = caravan.Faction; float result = (((CaravanAI)caravan).Threat + GetLeaderPoints(faction)) * WarUtility.GetMultiplierFor(faction.def.techLevel); return(result); }