MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / GetRocketDamage

Method GetRocketDamage

PanzerChasm/server/map.cpp:3220–3227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3218}
3219
3220int Map::GetRocketDamage( const int initial_damage )
3221{
3222 PC_ASSERT( initial_damage >= 0 );
3223
3224 // Returns initial_damage +- 25%
3225 return
3226 initial_damage - ( initial_damage / 4 )+ int(random_generator_->Rand()) % ( 1 + initial_damage / 2 );
3227}
3228
3229void Map::EmitModelDestructionEffects( const unsigned int model_number )
3230{

Callers

nothing calls this directly

Calls 1

RandMethod · 0.80

Tested by

no test coverage detected