public Unit_ChthonianArmy(Location loc, SG_Chthonians soc) : base(loc, soc) { hp = 1; home = loc; isMilitary = true; parentSG = soc; }
public override void cast(Map map, Hex hex) { base.cast(map, hex); if (!castable(map, hex)) { return; } SG_Chthonians soc = null; foreach (SocialGroup sg in map.socialGroups) //this seems to find the freshly created soc { if (sg is SG_Chthonians) //TODO <- look up what this does { soc = (SG_Chthonians)sg; //TODO <- look up what this does } } if (soc == null) { map.socialGroups.Add(new SG_Chthonians(map, hex.location)); } else { hex.location.soc = soc; } hex.location.settlement = new Set_ChthonianCitadel(hex.location); map.world.prefabStore.popImgMsg( "You call your children to return from hiding and build a great citadel. They will build up an army and send out infiltrators to soften up nearby humans for conquest." + "\nYou may instruct your children what to do next.", map.world.wordStore.lookup("UNHOLY_FLESH_SEED")); //TODO <- look up what this does }