public bool resolve() { FactionFC factionfc = Find.World.GetComponent <FactionFC>(); if (PaymentUtil.getSilver() >= -1 * taxes.silverAmount || taxes.silverAmount >= 0) { //if have enough silver on the current map to pay & map belongs to player FCEventMaker.createTaxEvent(this); if (taxes.researchCompleted != 0) { factionfc.researchPointPool += taxes.researchCompleted; Messages.Message("PointsAddedToResearchPool".Translate(taxes.researchCompleted), MessageTypeDefOf.PositiveEvent); } if (taxes.electricityAllotted != 0) { factionfc.powerPool += taxes.electricityAllotted; } return(true); } string messageString = "NotEnoughSilverForBill".Translate() + " " + settlement.name + ". " + "ConfiscatedTithes".Translate() + "." + " " + "UnpaidTitheEffect".Translate(); settlement.GainUnrestWithReason(new Message(messageString, MessageTypeDefOf.NegativeEvent), 10d); settlement.GainHappiness(-10d); factionfc.Bills.Remove(this); return(false); }