public static void LeaderAcceptsOffer(Tribe sourceTribe, Tribe targetTribe, long eventId) { //#if DEBUG // Debug.Log(string.Format("targetTribe ({0}) has accepted offer from sourceTribe ({1}) ", targetTribe.Id, sourceTribe.Id)); // Debug.Log(string.Format("targetTribe ({0}) - coregroup location: {1}", targetTribe.Id, sourceTribe.CoreGroup.Position)); // //Debug.Break(); //#endif int rngOffset = RngOffsets.MERGE_TRIBES_EVENT_TARGETTRIBE_LEADER_ACCEPTS_OFFER_MODIFY_ATTRIBUTE; Effect_DecreasePreference(targetTribe, CulturalPreference.IsolationPreferenceId, BaseMinPreferencePercentChange, BaseMaxPreferencePercentChange, rngOffset++); Effect_IncreaseRelationship(targetTribe, sourceTribe, BaseMinRelationshipPercentChange, BaseMaxRelationshipPercentChange, rngOffset++); sourceTribe.MergePolity(targetTribe); sourceTribe.DominantFaction.SetToUpdate(); // targetTribe.DominantFaction.SetToUpdate (); LeaderAcceptsOffer_notifySourceTribe(sourceTribe, targetTribe, eventId); }