adaneslavo / More-Unique-Components-for-VP

Adds 3rd and 4th unique component to each civilization.
1 stars 6 forks source link

Rework Maya: add new GameEvent #53

Closed adaneslavo closed 6 years ago

adaneslavo commented 6 years ago
function OnEndOfMayaLongCount(iPlayer, iBaktun, iBaktunPreviousTurn)
    print("END OF MAYA LONG COUNT", iPlayer, iBaktun, iBaktunPreviousTurn)
end
GameEvents.PlayerEndOfMayaLongCount.Add(OnEndOfMayaLongCount)
pineappledan commented 6 years ago

unrelated, but has anything been done regarding Hinin's comment about the k'atun ajaw promotions?

The intent was to have the k'atun ahaw level up every 20 turns of game time, but as they were implemented they marked 20 turns from the unit's creation. It should be possible to have a unit built on turn 99, and on turn 100 for it to get level 1 of the k'atun ajaw bonus

adaneslavo commented 6 years ago

No. Hinin is wrong and they take into acount GameTurns. I don't know why he thought about Unit turns. It was old abandoned idea I even didn't start implementing. You can look into the code by yourself to check that. There's no code for checking unit life. It would require making a whole table of units with their creation turns saved. Too much work.

adaneslavo commented 6 years ago

I repaired all bugs mentioned by FoxOfWar. They will be implemented in v26. Also did massive rework of Maya code. I only wait for answer from Infixo about simplifying Holkan's code.

adaneslavo commented 6 years ago
function OnGoodyHutReceivedBonus(iPlayer, iUnit, eGoody, iX, iY)
   dprint("OnGoodyHutReceivedBonus", iPlayer, iUnit, eGoody, iX, iY)
end
GameEvents.GoodyHutReceivedBonus.Add(OnGoodyHutReceivedBonus)
pineappledan commented 6 years ago

Update to VP is scheduled for tonight. Should be able to close this and the Baan Chang issues