Changeset 9372 for code/branches/release2012/src
- Timestamp:
- Sep 6, 2012, 3:00:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/release2012/src/orxonox/gametypes/UnderAttack.cc
r9370 r9372 207 207 //Each defender prevents 500 damage. If human 2000 damage will be additionally be prevented. 208 208 //TODO: use gametime and the damage dealt so far in order to calculate the transporter's life more precisely 209 float health = this->getTeamSize(attacker_)* 3500.0f + this->getHumansInTeam(attacker_)*1500.0f - this->getTeamSize(defender_)*500.0f - this->getHumansInTeam(defender_)*2000.0f ;209 float health = this->getTeamSize(attacker_)*2000.0f + this->getHumansInTeam(attacker_)*3000.0f - this->getTeamSize(defender_)*500.0f - this->getHumansInTeam(defender_)*2000.0f ; 210 210 this->destroyer_->setHealth(std::max(health, 5000.0f)); //the destoyer should have at least 5000.0f life. 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.