19 MarketAPI laicaille =
Global.
getSector().getEconomy().getMarket(
"laicaille_habitat");
20 if (laicaille ==
null)
return;
22 PersonAPI laicailleArchon =
Global.
getSector().getImportantPeople().getPerson(People.LAICAILLE_ARCHON);
23 laicailleArchon.setPostId(Ranks.POST_CITIZEN);
24 laicailleArchon.addTag(Tags.INVOLUNTARY_RETIREMENT);
25 laicailleArchon.setImportance(laicailleArchon.getImportance().prev());
26 laicaille.getCommDirectory().removePerson(laicailleArchon);
27 laicaille.getCommDirectory().addPerson(laicailleArchon, 1000);
30 PersonAPI newArchon =
Global.
getSector().getFaction(Factions.PERSEAN).createRandomPerson();
31 newArchon.setRankId(Ranks.GROUND_COLONEL);
32 newArchon.setPostId(Ranks.POST_BASE_COMMANDER);
35 newArchon.getName().setLast(
"Hannan");
36 newArchon.setImportance(PersonImportance.HIGH);
37 newArchon.addTag(Tags.REPLACEMENT_ARCHON);
40 newArchon.setVoice(Voices.ARISTO);
42 laicaille.getCommDirectory().addPerson(newArchon, 0);
43 laicaille.addPerson(newArchon);