[ctp2-commit] Revision 997 committed by Maquiladora

ctp2-commit at darkdust.net ctp2-commit at darkdust.net
Sun Jul 5 02:36:09 CEST 2009

Fixed the EffectIncreaseScience feat not giving any science bonus. This bonus does not show in the empire manager yet. Cleaning up the empire manager will be a job by itself.

Fixed the EffectIncreaseHitPoints feat not giving any hit points bonus. This now works the same way as the wonder hit points effect. When the feat is built existing units get added the extra HP. When the feat is in effect new units start with the extra HP. An "undocumented feature" of this and the HP wonder effect is that when a unit loses health lower than it's maximum HP in units.txt, it can only heal back to it's original HP from units.txt. (Unless of course you build another HP wonder or achieve another HP feat). TODO: Make this bonus maximum hit points permanent until the wonder or feat effect is gone, also modify the interface or the green HP bar not to overlap the interface.

U   trunk/ctp2_code/gs/gameobj/FeatTracker.cpp
U   trunk/ctp2_code/gs/gameobj/Player.cpp
U   trunk/ctp2_code/gs/gameobj/UnitData.cpp
U   trunk/ctp2_code/gs/gameobj/player.h

More information about the ctp2-commit mailing list