private void DetectAmbush(Troop troop) { int chance = 40 - troop.Leader.Calmness; if (this.Level <= InformationLevel.中) { if (troop.OnlyBeDetectedByHighLevelInformation) { return; } } else { chance *= 3; } if (GameObject.Chance(chance)) { troop.AmbushDetected(troop); } }