This commit is contained in:
Cyantime
2023-01-22 23:00:42 -05:00
committed by GitHub
parent f4821862bc
commit 01be3431df
+10 -8
View File
@@ -46,13 +46,15 @@
return
if(istype(O, /obj/item/weapon/firework_star))
loaded_star = O
user.drop_item()
O.forceMove(src)
to_chat(user, "<span class='notice'>You insert the firework star into the launcher.</span>")
add_fingerprint(user)
update_icon()
return
if(loaded_star)
to_chat(user, SPAN_NOTICE("\The [src] already has \a [loaded_star] inside, unload it first!"))
return
if(user.unEquip(O, 0, src))
loaded_star = O
to_chat(user, "<span class='notice'>You insert the firework star into the launcher.</span>")
add_fingerprint(user)
update_icon()
return
return ..()
@@ -121,4 +123,4 @@
var/datum/planet/P = SSplanets.z_to_planet[T.z]
if(!P)
return
return P
return P