Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2006, 9:58:14 AM (18 years ago)
Author:
marcscha
Message:

Armor → Health interconnection for UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10117 r10119  
    214214  shieldTH          = .2* shieldMax;   // shield power must be 20% before shield kicks in again
    215215
     216  this->setHealth( 20);
     217  this->setHealthMax( 100);
     218
    216219  electronicCur = 50;
    217220  electronicMax = 50;
     
    690693  if( this->armorCur <= 0) { /* FIXME implement shipcrash*/ }
    691694    this->destroy(this);
     695
     696  this->setHealth( this->armorCur);
    692697}
    693698
Note: See TracChangeset for help on using the changeset viewer.