public void MakeContribution() { if (!LegionfallData.legionfallDictionary.ContainsKey(this.m_contributionID)) { return; } WrapperContribution contribution = LegionfallData.legionfallDictionary[this.m_contributionID].contribution; if (contribution.State == 1) { LegionfallBuildingPanel.s_lastContributionID = this.m_contributionID; Debug.Log("Starting to contribute to ID " + contribution.ContributionID); if (Main.instance.MakeContributionRequestInitiatedAction != null) { Main.instance.MakeContributionRequestInitiatedAction(); } LegionCompanionWrapper.MakeContribution(contribution.ContributionID); this.m_lootDisplayPending = true; this.m_delayBeforeShowingLoot = 2f; this.m_lootDisplayTimeRemaining = 3f; Main.instance.m_UISound.Play_ButtonRedClick(); } }