Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2012, 2:36:52 PM (13 years ago)
Author:
lkevin
Message:

First working version. Default damage increase is
currently set to 20. Now fixing things and documenting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup2012/src/orxonox/worldentities/pawns/Pawn.cc

    r9099 r9118  
    232232    {
    233233        // apply multiplier
    234         damage *= originator->getDamageMultiplier();
     234        Pawn *test = dynamic_cast<Pawn *>(originator);
     235        if( test != NULL )
     236          damage *= originator->getDamageMultiplier();
    235237
    236238        if (this->getGametype() && this->getGametype()->allowPawnDamage(this, originator))
Note: See TracChangeset for help on using the changeset viewer.