mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Migrate latex balloon to the new attack chain. (#32219)
* Migrate latex balloon to the new attack chain. * Apply suggestion from CRUNCH review Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Signed-off-by: Alan <alfalfascout@users.noreply.github.com> * Hopefully clear CRLF error? * Add fingerprint. --------- Signed-off-by: Alan <alfalfascout@users.noreply.github.com> Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
cares_about_temperature = TRUE
|
||||
var/state
|
||||
var/datum/gas_mixture/air_contents = null
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/latexballon/Destroy()
|
||||
QDEL_NULL(air_contents)
|
||||
@@ -26,6 +27,7 @@
|
||||
user.update_inv_l_hand()
|
||||
to_chat(user, SPAN_NOTICE("You blow up [src] with [tank]."))
|
||||
air_contents = tank.remove_air_volume(3)
|
||||
add_fingerprint(user)
|
||||
|
||||
/obj/item/latexballon/proc/burst()
|
||||
if(!air_contents || icon_state != "latexballon_blow")
|
||||
@@ -59,10 +61,13 @@
|
||||
if(exposed_temperature > T0C+100)
|
||||
burst()
|
||||
|
||||
/obj/item/latexballon/attackby__legacy__attackchain(obj/item/W, mob/user, params)
|
||||
if(istype(W, /obj/item/tank))
|
||||
var/obj/item/tank/T = W
|
||||
blow(T, user)
|
||||
return
|
||||
if(W.sharp || W.get_heat() || is_pointed(W))
|
||||
/obj/item/latexballon/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(istype(used, /obj/item/tank))
|
||||
var/obj/item/tank/tank = used
|
||||
blow(tank, user)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(used.sharp || used.get_heat() || is_pointed(used))
|
||||
burst()
|
||||
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
Reference in New Issue
Block a user