mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
* Adds outfit buildmode mode * Adds a delete mode, makes copy compatible with humans * comment fix * AIstatus * Tick the files, dummy * none of that * Some more copy restrictions * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: Rohesie <rohesie@gmail.com>
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
/datum/buildmode_mode/outfit
|
|
key = "outfit"
|
|
var/datum/outfit/dressuptime
|
|
|
|
/datum/buildmode_mode/outfit/Destroy()
|
|
dressuptime = null
|
|
return ..()
|
|
|
|
/datum/buildmode_mode/outfit/show_help(client/c)
|
|
to_chat(c, "<span class='notice'>***********************************************************\n\
|
|
Right Mouse Button on buildmode button = Select outfit to equip.\n\
|
|
Left Mouse Button on mob/living/carbon/human = Equip the selected outfit.\n\
|
|
Right Mouse Button on mob/living/carbon/human = Strip and delete current outfit.\n\
|
|
***********************************************************</span>")
|
|
|
|
/datum/buildmode_mode/outfit/Reset()
|
|
. = ..()
|
|
dressuptime = null
|
|
|
|
/datum/buildmode_mode/outfit/change_settings(client/c)
|
|
dressuptime = c.robust_dress_shop()
|
|
|
|
/datum/buildmode_mode/outfit/handle_click(client/c, params, object)
|
|
var/list/pa = params2list(params)
|
|
var/left_click = pa.Find("left")
|
|
var/right_click = pa.Find("right")
|
|
|
|
if(!ishuman(object))
|
|
return
|
|
var/mob/living/carbon/human/dollie = object
|
|
|
|
if(left_click)
|
|
if(isnull(dressuptime))
|
|
to_chat(c, "<span class='warning'>Pick an outfit first.</span>")
|
|
return
|
|
|
|
for (var/item in dollie.get_equipped_items(TRUE))
|
|
qdel(item)
|
|
if(dressuptime != "Naked")
|
|
dollie.equipOutfit(dressuptime)
|
|
|
|
if(right_click)
|
|
for (var/item in dollie.get_equipped_items(TRUE))
|
|
qdel(item)
|