five-on-it / packages/sim/src/mods / damageShare
Function: damageShare()
damageShare(
sim,car,weapon):number
Defined in: packages/sim/src/mods.ts:171
The share of a hit's damage a vehicle takes (see the module documentation): a car's 100 hit points over its own (its class's, half as many again with plating), times the share of a bullet it takes for a bullet (its class's, times the plating's).
Parameters
sim
car
number
weapon
number
Returns
number