public int GetBuildingBoostCost(LogicBuildingData data, int upgLevel) { for (int i = 0; i < this.m_buildingBoostCost.Size(); i++) { LogicDataSlot slot = this.m_buildingBoostCost[i]; if (slot.GetData() == data) { return(slot.GetCount()); } } return(data.GetBoostCost(upgLevel)); }
public int GetBuildingBoostCost(LogicBuildingData data, int upgLevel) { int buildingBoostCost = data.GetBoostCost(upgLevel); for (int i = this.m_activeCalendarEvents.Size() - 1; i >= 0; i--) { int cost = this.m_activeCalendarEvents[i].GetBuildingBoostCost(data, upgLevel); if (cost <= buildingBoostCost) { buildingBoostCost = cost; } } return(buildingBoostCost); }
/// <summary> /// Gets the building boost cost. /// </summary> public int GetBuildingBoostCost(LogicBuildingData data, int upgLevel) { return(data.GetBoostCost(upgLevel)); // TODO: Implement this. }