Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 into Ghommie-cit616
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
|
||||
var/flipped = 0
|
||||
|
||||
/obj/item/clothing/head/soft/dropped()
|
||||
src.icon_state = "[item_color]soft"
|
||||
src.flipped=0
|
||||
..()
|
||||
/obj/item/clothing/head/soft/dropped(mob/user)
|
||||
icon_state = "[item_color]soft"
|
||||
flipped = FALSE
|
||||
return ..()
|
||||
|
||||
/obj/item/clothing/head/soft/verb/flipcap()
|
||||
set category = "Object"
|
||||
|
||||
@@ -247,6 +247,30 @@
|
||||
/obj/item/clothing/mask/bandana/attack_self(mob/user)
|
||||
adjustmask(user)
|
||||
|
||||
/obj/item/clothing/mask/bandana/AltClick(mob/user)
|
||||
. = ..()
|
||||
if(iscarbon(user))
|
||||
var/mob/living/carbon/C = user
|
||||
if((C.get_item_by_slot(SLOT_HEAD == src)) || (C.get_item_by_slot(SLOT_WEAR_MASK) == src))
|
||||
to_chat(user, "<span class='warning'>You can't tie [src] while wearing it!</span>")
|
||||
return
|
||||
if(slot_flags & ITEM_SLOT_HEAD)
|
||||
to_chat(user, "<span class='warning'>You must undo [src] before you can tie it into a neckerchief!</span>")
|
||||
else
|
||||
if(user.is_holding(src))
|
||||
var/obj/item/clothing/neck/neckerchief/nk = new(src)
|
||||
nk.name = "[name] neckerchief"
|
||||
nk.desc = "[desc] It's tied up like a neckerchief."
|
||||
nk.icon_state = icon_state
|
||||
nk.sourceBandanaType = src.type
|
||||
var/currentHandIndex = user.get_held_index_of_item(src)
|
||||
user.transferItemToLoc(src, null)
|
||||
user.put_in_hand(nk, currentHandIndex)
|
||||
user.visible_message("<span class='notice'>You tie [src] up like a neckerchief.</span>", "<span class='notice'>[user] ties [src] up like a neckerchief.</span>")
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You must be holding [src] in order to tie it!")
|
||||
|
||||
/obj/item/clothing/mask/bandana/red
|
||||
name = "red bandana"
|
||||
desc = "A fine red bandana with nanotech lining."
|
||||
|
||||
@@ -291,3 +291,36 @@
|
||||
icon = 'icons/obj/clothing/neck.dmi'
|
||||
icon_state = "bling"
|
||||
item_color = "bling"
|
||||
|
||||
//////////////////////////////////
|
||||
//VERY SUPER BADASS NECKERCHIEFS//
|
||||
//////////////////////////////////
|
||||
|
||||
obj/item/clothing/neck/neckerchief
|
||||
icon = 'icons/obj/clothing/masks.dmi' //In order to reuse the bandana sprite
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
var/sourceBandanaType
|
||||
|
||||
/obj/item/clothing/neck/neckerchief/worn_overlays(isinhands)
|
||||
. = ..()
|
||||
if(!isinhands)
|
||||
var/mutable_appearance/realOverlay = mutable_appearance('icons/mob/mask.dmi', icon_state)
|
||||
realOverlay.pixel_y = -3
|
||||
. += realOverlay
|
||||
|
||||
/obj/item/clothing/neck/neckerchief/AltClick(mob/user)
|
||||
. = ..()
|
||||
if(iscarbon(user))
|
||||
var/mob/living/carbon/C = user
|
||||
if(C.get_item_by_slot(SLOT_NECK) == src)
|
||||
to_chat(user, "<span class='warning'>You can't untie [src] while wearing it!</span>")
|
||||
return
|
||||
if(user.is_holding(src))
|
||||
var/obj/item/clothing/mask/bandana/newBand = new sourceBandanaType(user)
|
||||
var/currentHandIndex = user.get_held_index_of_item(src)
|
||||
var/oldName = src.name
|
||||
qdel(src)
|
||||
user.put_in_hand(newBand, currentHandIndex)
|
||||
user.visible_message("You untie [oldName] back into a [newBand.name]", "[user] unties [oldName] back into a [newBand.name]")
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You must be holding [src] in order to untie it!")
|
||||
|
||||
@@ -8,16 +8,11 @@
|
||||
resistance_flags = FIRE_PROOF | ACID_PROOF
|
||||
var/obj/item/clothing/suit/space/chronos/suit = null
|
||||
|
||||
/obj/item/clothing/head/helmet/space/chronos/dropped()
|
||||
/obj/item/clothing/head/helmet/space/chronos/dropped(mob/user)
|
||||
if(suit)
|
||||
suit.deactivate(1, 1)
|
||||
..()
|
||||
|
||||
/obj/item/clothing/head/helmet/space/chronos/Destroy()
|
||||
dropped()
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/item/clothing/suit/space/chronos
|
||||
name = "Chronosuit"
|
||||
desc = "An advanced spacesuit equipped with time-bluespace teleportation and anti-compression technology."
|
||||
@@ -57,15 +52,11 @@
|
||||
else
|
||||
deactivate()
|
||||
|
||||
/obj/item/clothing/suit/space/chronos/dropped()
|
||||
/obj/item/clothing/suit/space/chronos/dropped(mob/user)
|
||||
if(activated)
|
||||
deactivate()
|
||||
..()
|
||||
|
||||
/obj/item/clothing/suit/space/chronos/Destroy()
|
||||
dropped()
|
||||
return ..()
|
||||
|
||||
/obj/item/clothing/suit/space/chronos/emp_act(severity)
|
||||
. = ..()
|
||||
if(. & EMP_PROTECT_SELF)
|
||||
|
||||
@@ -805,7 +805,8 @@
|
||||
. += "<span class='boldnotice'>Its maintainence panel is [maint_panel ? "OPEN" : "CLOSED"]</span>"
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/flightsuit/Destroy()
|
||||
dropped()
|
||||
if(ismob(loc))
|
||||
dropped(loc)
|
||||
QDEL_NULL(pack)
|
||||
QDEL_NULL(shoes)
|
||||
return ..()
|
||||
@@ -834,7 +835,7 @@
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/flightsuit/dropped()
|
||||
/obj/item/clothing/suit/space/hardsuit/flightsuit/dropped(mob/the_user)
|
||||
if(deployedpack)
|
||||
retract_flightpack(TRUE)
|
||||
if(deployedshoes)
|
||||
|
||||
@@ -707,7 +707,7 @@
|
||||
RegisterSignal(user, COMSIG_MOVABLE_MOVED, .proc/on_mob_move)
|
||||
listeningTo = user
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/ancient/dropped()
|
||||
/obj/item/clothing/suit/space/hardsuit/ancient/dropped(mob/user)
|
||||
. = ..()
|
||||
if(listeningTo)
|
||||
UnregisterSignal(listeningTo, COMSIG_MOVABLE_MOVED)
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
var/datum/action/A = X
|
||||
A.UpdateButtonIcon()
|
||||
|
||||
/obj/item/clothing/suit/hooded/dropped()
|
||||
/obj/item/clothing/suit/hooded/dropped(mob/user)
|
||||
..()
|
||||
RemoveHood()
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
suit = null
|
||||
return ..()
|
||||
|
||||
/obj/item/clothing/head/hooded/dropped()
|
||||
/obj/item/clothing/head/hooded/dropped(mob/user)
|
||||
..()
|
||||
if(suit)
|
||||
suit.RemoveHood()
|
||||
@@ -174,7 +174,7 @@
|
||||
else
|
||||
helmet.forceMove(src)
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/dropped()
|
||||
/obj/item/clothing/suit/space/hardsuit/dropped(mob/user)
|
||||
..()
|
||||
RemoveHelmet()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user