- Timestamp:
- Dec 13, 2017, 11:32:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DStone.cc
r11668 r11669 120 120 void Asteroids2DStone::damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) 121 121 { 122 if (getGame() && orxonox_cast<Asteroids2DShip*>(originator) != nullptr) 123 getGame()->addPoints(100); 122 124 split(); 123 125 //Pawn::damage(damage, healthdamage, shielddamage, originator, cs); 124 if (getGame() && orxonox_cast<Asteroids2DShip*>(originator) != nullptr && getHealth() <= 0)125 getGame()->addPoints(3*42);126 126 } 127 127
Note: See TracChangeset
for help on using the changeset viewer.