From 783b5f92cfccd1f8c6e33f88d9b09183254d5b69 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Tue, 5 Mar 2019 07:03:56 +0100 Subject: [PATCH] Fixing Piranha plant ranged code Ranged Piranha plant should now be able to correctly fire projectiles --- code/modules/mob/living/simple_animal/animals/tomato.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/animals/tomato.dm b/code/modules/mob/living/simple_animal/animals/tomato.dm index e3f1834036..880288d726 100644 --- a/code/modules/mob/living/simple_animal/animals/tomato.dm +++ b/code/modules/mob/living/simple_animal/animals/tomato.dm @@ -127,14 +127,13 @@ /mob/living/simple_animal/hostile/piranhaplant/spitter //might snatch the code for that uranium ray for this since it should poison name = "Piranha Spitter" - - //Attack ranged settings, This will be used for the second time, the piranha spitters + //Attack ranged settings. ranged = 1 // Do I attack at range? shoot_range = 5 // How far away do I start shooting from? view_range = 5 //More range, more hurt, more... plant? rapid = 0 // Three-round-burst fire mode firing_lines = 0 // Avoids shooting allies - projectiletype = "piranhaspit" // The projectiles I shoot + projectiletype = /obj/item/projectile/energy/piranhaspit // The projectiles I shoot projectilesound = 'sound/weapons/thudswoosh.ogg' // The sound I make when I do it casingtype = /obj/item/weapon/reagent_containers/food/snacks/soylentgreen/piranha // What to make the hugely laggy casings pile out of