summaryrefslogtreecommitdiff
path: root/src/throwables.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-12-27 18:57:42 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-12-27 18:57:42 +0100
commit92def83d88b81aab0cd08e44759b8b8d6354b7c3 (patch)
tree48eaeeec2499971799a98b034568987761a97f59 /src/throwables.c
parent15df457b99268e8ee3d23cc888461453a4c1a25e (diff)
work
Diffstat (limited to 'src/throwables.c')
-rw-r--r--src/throwables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/throwables.c b/src/throwables.c
index 2ed5133..518502f 100644
--- a/src/throwables.c
+++ b/src/throwables.c
@@ -48,11 +48,13 @@ void throw_throwable(u32 id, throwable_type type, float dirx, float diry) {
switch(type) {
case THROWABLE_GRENADE: {
+ p->throwables.grenades--;
t.sprite = create_sprite(img_grenade_explode, 12, 96, 96, 0.1f);
t.damage = 1500;
t.direction = (vec3f){.x = dirx*1.5f, .y = diry*1.5f, .z = -0.2f};
} break;
case THROWABLE_MOLOTOV: {
+ p->throwables.molotovs--;
t.sprite = create_sprite(img_molotov_explode, 32, 66, 119, 0.04f);
t.damage = 300;
t.direction = (vec3f){.x = dirx*2.5f, .y = diry*2.5f, .z = -0.3f};