Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2006, 2:38:25 PM (17 years ago)
Author:
nicolasc
Message:

finished systemFailure(), included RNG

File:
1 edited

Legend:

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

    r10020 r10022  
    8383    void weaponRegen(float time);   //!< weapon energy regeneration
    8484
    85     inline bool systemFailure();
     85    inline bool systemFailure() {  return (this->electronicCur < float(rand())/float(RAND_MAX) * this->electronicTH); };
    8686
    8787    //WeaponManager         weaponMan;      //!< the primary weapon manager: managing a list of energy weapons to wepaon-slot mapping
Note: See TracChangeset for help on using the changeset viewer.