diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-16 20:48:47 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-16 20:48:47 -0600 |
commit | 2c3290f9edebbde37737cc446a0e9f93e9430c06 (patch) | |
tree | 807fa59074bd38ab5e8c23257aa2b03234f6bc7e /src/entities/guidedMissile.c | |
parent | 7ffeaacac296155632705f2a494683d3bdffa684 (diff) |
The missile does damage now
Diffstat (limited to 'src/entities/guidedMissile.c')
-rw-r--r-- | src/entities/guidedMissile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/guidedMissile.c b/src/entities/guidedMissile.c index 7780404..1c1749b 100644 --- a/src/entities/guidedMissile.c +++ b/src/entities/guidedMissile.c @@ -73,7 +73,7 @@ void guidedMissileGoBoomBoom(Game * game, Entity * entity) { // Get player distance and get the damage the missile will do. float distance = Vector3Distance(player->position, entity->position); - float damage = fabs(GUIDED_MISSILE_DAMAGE - (distance * GUIDED_MISSILE_BOOM_DISTANCE_MOD)); + float damage = GUIDED_MISSILE_DAMAGE / distance; // Hurt this mother fucker. player->health -= damage; |