mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Kills obj/item/projectile in favour of obj/projectile (#46692)
* Kills obj/item/projectile in favour of obj/projectile * Resolves conflicts properly * fixes that one map * it lives
This commit is contained in:
@@ -405,11 +405,11 @@
|
||||
/obj/item/ammo_casing/magic/hook
|
||||
name = "hook"
|
||||
desc = "A hook."
|
||||
projectile_type = /obj/item/projectile/hook
|
||||
projectile_type = /obj/projectile/hook
|
||||
caliber = "hook"
|
||||
icon_state = "hook"
|
||||
|
||||
/obj/item/projectile/hook
|
||||
/obj/projectile/hook
|
||||
name = "hook"
|
||||
icon_state = "hook"
|
||||
icon = 'icons/obj/lavaland/artefacts.dmi'
|
||||
@@ -421,13 +421,13 @@
|
||||
paralyze = 30
|
||||
var/chain
|
||||
|
||||
/obj/item/projectile/hook/fire(setAngle)
|
||||
/obj/projectile/hook/fire(setAngle)
|
||||
if(firer)
|
||||
chain = firer.Beam(src, icon_state = "chain", time = INFINITY, maxdistance = INFINITY)
|
||||
..()
|
||||
//TODO: root the firer until the chain returns
|
||||
|
||||
/obj/item/projectile/hook/on_hit(atom/target)
|
||||
/obj/projectile/hook/on_hit(atom/target)
|
||||
. = ..()
|
||||
if(ismovableatom(target))
|
||||
var/atom/movable/A = target
|
||||
@@ -438,7 +438,7 @@
|
||||
//TODO: keep the chain beamed to A
|
||||
//TODO: needs a callback to delete the chain
|
||||
|
||||
/obj/item/projectile/hook/Destroy()
|
||||
/obj/projectile/hook/Destroy()
|
||||
qdel(chain)
|
||||
return ..()
|
||||
|
||||
@@ -451,9 +451,9 @@
|
||||
to_chat(user, "<span class='warning'>The [src] isn't ready to fire yet!</span>")
|
||||
|
||||
/obj/item/ammo_casing/magic/hook/bounty
|
||||
projectile_type = /obj/item/projectile/hook/bounty
|
||||
projectile_type = /obj/projectile/hook/bounty
|
||||
|
||||
/obj/item/projectile/hook/bounty
|
||||
/obj/projectile/hook/bounty
|
||||
damage = 0
|
||||
paralyze = 20
|
||||
|
||||
@@ -1069,8 +1069,8 @@
|
||||
/obj/structure/closet/crate/necropolis/colossus
|
||||
name = "colossus chest"
|
||||
|
||||
/obj/structure/closet/crate/necropolis/colossus/bullet_act(obj/item/projectile/P)
|
||||
if(istype(P, /obj/item/projectile/colossus))
|
||||
/obj/structure/closet/crate/necropolis/colossus/bullet_act(obj/projectile/P)
|
||||
if(istype(P, /obj/projectile/colossus))
|
||||
return BULLET_ACT_FORCE_PIERCE
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user