mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
more fixes + code improvements
This commit is contained in:
@@ -26,6 +26,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
slot_flags = ITEM_SLOT_EARS
|
slot_flags = ITEM_SLOT_EARS
|
||||||
var/obj/item/encryptionkey/keyslot2 = null
|
var/obj/item/encryptionkey/keyslot2 = null
|
||||||
dog_fashion = null
|
dog_fashion = null
|
||||||
|
var/bowman = FALSE
|
||||||
|
|
||||||
/obj/item/radio/headset/suicide_act(mob/living/carbon/user)
|
/obj/item/radio/headset/suicide_act(mob/living/carbon/user)
|
||||||
user.visible_message("<span class='suicide'>[user] begins putting \the [src]'s antenna up [user.p_their()] nose! It looks like [user.p_theyre()] trying to give [user.p_them()]self cancer!</span>")
|
user.visible_message("<span class='suicide'>[user] begins putting \the [src]'s antenna up [user.p_their()] nose! It looks like [user.p_theyre()] trying to give [user.p_them()]self cancer!</span>")
|
||||||
@@ -52,6 +53,11 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
else
|
else
|
||||||
. += "<span class='notice'>A small screen on the headset flashes, it's too small to read without holding or wearing the headset.</span>"
|
. += "<span class='notice'>A small screen on the headset flashes, it's too small to read without holding or wearing the headset.</span>"
|
||||||
|
|
||||||
|
/obj/item/radio/headset/ComponentInitialize()
|
||||||
|
. = ..()
|
||||||
|
if (bowman)
|
||||||
|
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
||||||
|
|
||||||
/obj/item/radio/headset/Initialize()
|
/obj/item/radio/headset/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
recalculateChannels()
|
recalculateChannels()
|
||||||
@@ -81,10 +87,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
desc = "A syndicate headset that can be used to hear all radio frequencies. Protects ears from flashbangs."
|
desc = "A syndicate headset that can be used to hear all radio frequencies. Protects ears from flashbangs."
|
||||||
icon_state = "syndie_headset"
|
icon_state = "syndie_headset"
|
||||||
item_state = "syndie_headset"
|
item_state = "syndie_headset"
|
||||||
|
bowman = TRUE
|
||||||
/obj/item/radio/headset/syndicate/alt/ComponentInitialize()
|
|
||||||
. = ..()
|
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
|
||||||
|
|
||||||
/obj/item/radio/headset/syndicate/alt/leader
|
/obj/item/radio/headset/syndicate/alt/leader
|
||||||
name = "team leader headset"
|
name = "team leader headset"
|
||||||
@@ -112,10 +115,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
desc = "This is used by your elite security force. Protects ears from flashbangs."
|
desc = "This is used by your elite security force. Protects ears from flashbangs."
|
||||||
icon_state = "sec_headset_alt"
|
icon_state = "sec_headset_alt"
|
||||||
item_state = "sec_headset_alt"
|
item_state = "sec_headset_alt"
|
||||||
|
bowman = TRUE
|
||||||
/obj/item/radio/headset/headset_sec/alt/ComponentInitialize()
|
|
||||||
. = ..()
|
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
|
||||||
|
|
||||||
/obj/item/radio/headset/headset_eng
|
/obj/item/radio/headset/headset_eng
|
||||||
name = "engineering radio headset"
|
name = "engineering radio headset"
|
||||||
@@ -161,10 +161,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
desc = "The headset of the boss. Protects ears from flashbangs."
|
desc = "The headset of the boss. Protects ears from flashbangs."
|
||||||
icon_state = "com_headset_alt"
|
icon_state = "com_headset_alt"
|
||||||
item_state = "com_headset_alt"
|
item_state = "com_headset_alt"
|
||||||
|
bowman = TRUE
|
||||||
/obj/item/radio/headset/heads/captain/alt/ComponentInitialize()
|
|
||||||
. = ..()
|
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
|
||||||
|
|
||||||
/obj/item/radio/headset/heads/rd
|
/obj/item/radio/headset/heads/rd
|
||||||
name = "\proper the research director's headset"
|
name = "\proper the research director's headset"
|
||||||
@@ -183,10 +180,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
desc = "The headset of the man in charge of keeping order and protecting the station. Protects ears from flashbangs."
|
desc = "The headset of the man in charge of keeping order and protecting the station. Protects ears from flashbangs."
|
||||||
icon_state = "com_headset_alt"
|
icon_state = "com_headset_alt"
|
||||||
item_state = "com_headset_alt"
|
item_state = "com_headset_alt"
|
||||||
|
bowman = TRUE
|
||||||
/obj/item/radio/headset/heads/hos/ComponentInitialize()
|
|
||||||
. = ..()
|
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
|
||||||
|
|
||||||
/obj/item/radio/headset/heads/ce
|
/obj/item/radio/headset/heads/ce
|
||||||
name = "\proper the chief engineer's headset"
|
name = "\proper the chief engineer's headset"
|
||||||
@@ -258,10 +252,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
icon_state = "cent_headset_alt"
|
icon_state = "cent_headset_alt"
|
||||||
item_state = "cent_headset_alt"
|
item_state = "cent_headset_alt"
|
||||||
keyslot = null
|
keyslot = null
|
||||||
|
bowman = TRUE
|
||||||
/obj/item/radio/headset/headset_cent/alt/ComponentInitialize()
|
|
||||||
. = ..()
|
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
|
||||||
|
|
||||||
/obj/item/radio/headset/ai
|
/obj/item/radio/headset/ai
|
||||||
name = "\proper Integrated Subspace Transceiver "
|
name = "\proper Integrated Subspace Transceiver "
|
||||||
@@ -274,7 +265,7 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
/obj/item/radio/headset/attackby(obj/item/W, mob/user, params)
|
/obj/item/radio/headset/attackby(obj/item/W, mob/user, params)
|
||||||
user.set_machine(src)
|
user.set_machine(src)
|
||||||
if (istype(W,/obj/item/headsetupgrader))
|
if (istype(W,/obj/item/headsetupgrader))
|
||||||
if (!("bowman" in name) && !("syndicate" in name) && !("alien" in name))
|
if (!bowman)
|
||||||
to_chat(user,"<span class='notice'>You upgrade [src].</span>")
|
to_chat(user,"<span class='notice'>You upgrade [src].</span>")
|
||||||
bowmanize()
|
bowmanize()
|
||||||
qdel(W)
|
qdel(W)
|
||||||
@@ -364,4 +355,5 @@ GLOBAL_LIST_INIT(channel_tokens, list(
|
|||||||
add_overlay(centerpixel)
|
add_overlay(centerpixel)
|
||||||
name = replacetext(name,"headset", "bowman headset")
|
name = replacetext(name,"headset", "bowman headset")
|
||||||
desc = "[desc] Protects ears from flashbangs."
|
desc = "[desc] Protects ears from flashbangs."
|
||||||
|
bowman = TRUE
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
||||||
|
|||||||
@@ -629,15 +629,12 @@
|
|||||||
icon_state = "abductor_headset"
|
icon_state = "abductor_headset"
|
||||||
item_state = "abductor_headset"
|
item_state = "abductor_headset"
|
||||||
keyslot2 = new /obj/item/encryptionkey/heads/captain
|
keyslot2 = new /obj/item/encryptionkey/heads/captain
|
||||||
|
bowman = TRUE
|
||||||
|
|
||||||
/obj/item/radio/headset/abductor/Initialize(mapload)
|
/obj/item/radio/headset/abductor/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
make_syndie()
|
make_syndie()
|
||||||
|
|
||||||
/obj/item/radio/headset/abductor/ComponentInitialize()
|
|
||||||
. = ..()
|
|
||||||
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS))
|
|
||||||
|
|
||||||
/obj/item/radio/headset/abductor/attackby(obj/item/W, mob/user, params)
|
/obj/item/radio/headset/abductor/attackby(obj/item/W, mob/user, params)
|
||||||
if(W.tool_behaviour == TOOL_SCREWDRIVER)
|
if(W.tool_behaviour == TOOL_SCREWDRIVER)
|
||||||
return // Stops humans from disassembling abductor headsets.
|
return // Stops humans from disassembling abductor headsets.
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 50 KiB |
Reference in New Issue
Block a user