Use decay-rate for trained units.
This commit is contained in:
parent
2e04be70a0
commit
4c576de23c
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ global void HandleActionTrain(Unit* unit)
|
|||
type=unit->Type;
|
||||
DropOutOnSide(nunit,LookingW,type->TileWidth,type->TileHeight);
|
||||
|
||||
// set life span
|
||||
nunit->TTL=GameCycle+type->DecayRate*6*CYCLES_PER_SECOND;
|
||||
|
||||
// FIXME: GameMessage
|
||||
if( player==ThisPlayer ) {
|
||||
SetMessageEvent( nunit->X, nunit->Y, "New %s ready",
|
||||
|
|
Loading…
Add table
Reference in a new issue