forked from github/server
respecting ship->type->damage
This commit is contained in:
parent
090c6665f0
commit
c54e3f3be5
|
@ -149,7 +149,7 @@ findshipr(const region *r, int n)
|
||||||
void
|
void
|
||||||
damage_ship(ship * sh, double percent)
|
damage_ship(ship * sh, double percent)
|
||||||
{
|
{
|
||||||
double damage = DAMAGE_SCALE * percent * sh->size + sh->damage;
|
double damage = DAMAGE_SCALE * sh->type->damage * percent * sh->size + sh->damage;
|
||||||
sh->damage = (int)damage;
|
sh->damage = (int)damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue