public void ConscriptSoldiers() { if (intendant.action_points >= 4 && intendant.ProtagonistState.GetComponent <stategen>().Balance >= ConscriptCost) { intendant.selected_province.GetComponent <provincegen>().army += PeopleToConscript; intendant.selected_province.GetComponent <provincegen>().population -= PeopleToConscript; intendant.SpendMoney(ConscriptCost); intendant.SpendActionPoints(4); intendant.UpdateMode(); UpdateInfo(); } }
public void BuildFarm() { int cost = intendant.selected_province.GetComponent <provincegen>().Farms * 100 + 100; if (intendant.action_points >= 2 && intendant.ProtagonistState.GetComponent <stategen>().Balance >= cost) { intendant.selected_province.GetComponent <provincegen>().Farms++; UpdateMenuText(); intendant.UpdateMode(); intendant.selected_province.GetComponent <provincegen>().selected = false; intendant.selected_province.GetComponent <provincegen>().population += 10; intendant.selected_province = null; ConstructionMenu.SetActive(false); intendant.SpendActionPoints(2); intendant.SpendMoney(cost); } }
public void OnPressAssimilateButton() { if (intendant.GetBalance() >= cost && intendant.action_points >= 1) { provincegen pr = intendant.selected_province.GetComponent <provincegen>(); pr.separatism = (int)(pr.separatism * (1 - AssimilateSlider.value)); intendant.SpendMoney(cost); intendant.SpendActionPoints(1); intendant.UpdateMode(); UpdateInfo(); } }
public void ImproveDiplomaticRelations() { if (intendant.ProtagonistState.GetComponent <stategen>().Balance >= 100 && intendant.action_points >= 2) { stategen.ImprovePoliticalRelations(intendant.ProtagonistState, intendant.selected_state); intendant.SpendMoney(100); intendant.SpendActionPoints(2); intendant.UpdateMode(); } }