mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
the mod skin applier actually works now + honkeratives waddle (#87704)
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
|
||||
/obj/item/mod/skin_applier
|
||||
name = "MOD skin applier"
|
||||
desc = "This one-use skin applier will add a skin to MODsuits of a specific type."
|
||||
desc = "This one-use skin applier will add a skin to MODsuits of a specific type. Must be used on an inactive control unit."
|
||||
icon = 'icons/obj/clothing/modsuit/mod_construction.dmi'
|
||||
icon_state = "skinapplier"
|
||||
var/skin = "civilian"
|
||||
@@ -148,20 +148,27 @@
|
||||
. = ..()
|
||||
name = "MOD [skin] skin applier"
|
||||
|
||||
/obj/item/mod/skin_applier/pre_attack(atom/attacked_atom, mob/living/user, params)
|
||||
/obj/item/mod/skin_applier/interact_with_atom(atom/attacked_atom, mob/living/user, params)
|
||||
if(!istype(attacked_atom, /obj/item/mod/control))
|
||||
return ..()
|
||||
return NONE
|
||||
var/obj/item/mod/control/mod = attacked_atom
|
||||
if(mod.active || mod.activating)
|
||||
balloon_alert(user, "suit is active!")
|
||||
return TRUE
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
if(!(skin in mod.theme.variants))
|
||||
balloon_alert(user, "incompatible theme!")
|
||||
return TRUE
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
mod.theme.set_skin(mod, skin)
|
||||
balloon_alert(user, "skin applied")
|
||||
qdel(src)
|
||||
return TRUE
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
|
||||
/obj/item/mod/skin_applier/honkerative
|
||||
desc = /obj/item/mod/skin_applier::desc + " Additionally, this kit attempts to install a waddling module. Honk!"
|
||||
skin = "honkerative"
|
||||
|
||||
/obj/item/mod/skin_applier/honkerative/interact_with_atom(obj/item/mod/control/controlunit, mob/living/user, params)
|
||||
. = ..()
|
||||
if(!(. & ITEM_INTERACT_SUCCESS))
|
||||
return
|
||||
controlunit.install(new /obj/item/mod/module/waddle(get_turf(user)), user)
|
||||
|
||||
Reference in New Issue
Block a user