Update siegecannon.dm (#32697)

This commit is contained in:
adacovsk
2022-05-28 00:55:57 -04:00
committed by GitHub
parent 36c4428c24
commit a2629eedb7

View File

@@ -514,8 +514,9 @@
lastBounceCount++
if(isliving(hit_atom))
honkMob(hit_atom)
honkBounce(hit_atom)
else if(isitem(hit_atom) && hit_atom.density)
spawn(3) //Give throwing time to stop bullying me
spawn(10) //Give throwing time to stop bullying me
if(!throwing && cannonFired)
honkBounce(hit_atom,lastBounceCount)
@@ -524,7 +525,6 @@
/obj/item/cannonball/bananium/proc/honkMob(var/mob/living/L)
L.Knockdown(rand(2,10))
playsound(src, 'sound/items/bikehorn.ogg', 75, 1)
honkBounce(L,lastBounceCount)
/obj/item/cannonball/bananium/proc/honkBounce(var/atom/cTarg, var/tot_bounces = 0)
if(tot_bounces > 10)
@@ -534,7 +534,7 @@
var/honkDir = get_dir(src, cTarg)
honkStep -= list(honkDir, turn(honkDir, 45), turn(honkDir, -45)) //Every direction possible except directly, or diagonally, toward what we hit
honkDir = pick(honkStep)
spawn(3) //Prevents multiple instances of throw_at() from being active
spawn(10) //Prevents multiple instances of throw_at() from being active
bounceStep(honkDir)
/obj/item/cannonball/bananium/proc/bounceStep(var/honkDir)