public override string ToString() { string add = ""; if (title.heldBy != null) { add = " (now held by " + title.heldBy.getFullName() + ")"; } else { add = " (unassigned)"; } return("Assign Title: " + title.getName() + "\" " + add); }
public override string ToString() { string add = ""; //if (title.heldBy != null) //{ // add = " (now held by " + title.heldBy.getFullName() + ")"; //} //else //{ // add = " (unassigned)"; //} return("Assign Title: " + title.getName()); }
public override void implement(VoteOption option) { if (society.people.Contains(option.person) == false) { World.log("Invalid option. Person cannot hold title."); return; } base.implement(option); if (title.heldBy == option.person) { World.log("Title: " + title.getName() + " remains held by " + option.person.getFullName()); } //Person already has a title if (option.person.title_land != null) { TitleLanded prev = option.person.title_land; prev.heldBy = null; option.person.title_land = null; World.log(prev.getName() + " has lost its lord as they have been reassigned"); } //Title already has a person if (title.heldBy != null) { World.log(title.heldBy.getFullName() + " is losing title " + title.getName()); title.heldBy.title_land = null; title.heldBy = null; } World.log(option.person.getFullName() + " has been granted the title of " + title.getName()); title.heldBy = option.person; option.person.title_land = title; if (title.settlement != null) { title.settlement.lastAssigned = title.settlement.location.map.turn; } }