mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Large Plasma Tank (#18840)
* Large Plasma Tank * Update code/modules/mob/living/carbon/human/species/plasmaman.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/plasmaman.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/plasmaman.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/plasmaman.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/plasmaman.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/plasmaman.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: Ordosian <Ordosian@gmail.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
co-authored by
Sirryan2002
Charlie
Ordosian
parent
628748a1ee
commit
9cf1e7e5a6
@@ -3,8 +3,6 @@
|
||||
|
||||
head = /obj/item/clothing/head/helmet/space/plasmaman
|
||||
uniform = /obj/item/clothing/under/plasmaman
|
||||
r_hand = /obj/item/tank/internals/plasmaman/belt/full
|
||||
mask = /obj/item/clothing/mask/breath
|
||||
|
||||
/datum/outfit/plasmaman/bar
|
||||
name = "Plasmaman Bartender"
|
||||
|
||||
@@ -199,6 +199,8 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts
|
||||
dat += "<b>Species:</b> <a href='?_src_=prefs;preference=species;task=input'>[active_character.species]</a><br>"
|
||||
if(active_character.species == "Vox") // Purge these bastards
|
||||
dat += "<b>N2 Tank:</b> <a href='?_src_=prefs;preference=speciesprefs;task=input'>[active_character.speciesprefs ? "Large N2 Tank" : "Specialized N2 Tank"]</a><br>"
|
||||
if(active_character.species == "Plasmaman")
|
||||
dat += "<b>Plasma Tank:</b> <a href='?_src_=prefs;preference=speciesprefs;task=input'>[active_character.speciesprefs ? "Large Plasma Tank" : "Specialized Plasma Tank"]</a><br>"
|
||||
if(active_character.species == "Grey")
|
||||
dat += "<b>Wingdings:</b> Set in disabilities<br>"
|
||||
dat += "<b>Voice Translator:</b> <a href ='?_src_=prefs;preference=speciesprefs;task=input'>[active_character.speciesprefs ? "Yes" : "No"]</a><br>"
|
||||
|
||||
@@ -171,3 +171,23 @@
|
||||
return FALSE //Handling reagent removal on our own. Prevents plasma from dealing toxin damage to Plasmamen.
|
||||
|
||||
return ..()
|
||||
|
||||
/datum/species/plasmaman/after_equip_job(datum/job/J, mob/living/carbon/human/H)
|
||||
if(!H.mind || !H.mind.assigned_role || H.mind.assigned_role != "Clown" && H.mind.assigned_role != "Mime")
|
||||
H.unEquip(H.wear_mask)
|
||||
|
||||
H.equip_or_collect(new /obj/item/clothing/mask/breath(H), slot_wear_mask)
|
||||
var/tank_pref = H.client && H.client.prefs ? H.client.prefs.active_character.speciesprefs : null
|
||||
var/obj/item/tank/internal_tank
|
||||
if(tank_pref) //Diseasel, here you go
|
||||
internal_tank = new /obj/item/tank/internals/plasmaman/full(H)
|
||||
else
|
||||
internal_tank = new /obj/item/tank/internals/plasmaman/belt/full(H)
|
||||
if(!H.equip_to_appropriate_slot(internal_tank) && !H.put_in_any_hand_if_possible(internal_tank))
|
||||
H.unEquip(H.l_hand)
|
||||
H.equip_or_collect(internal_tank, slot_l_hand)
|
||||
to_chat(H, "<span class='boldannounce'>Could not find an empty slot for internals! Please report this as a bug.</span>")
|
||||
stack_trace("Failed to equip plasmaman with a tank, with the job [J.type]")
|
||||
H.internal = internal_tank
|
||||
to_chat(H, "<span class='notice'>You are now running on plasma internals from [internal_tank]. Oxygen is toxic to your species, so you must breathe plasma only.</span>")
|
||||
H.update_action_buttons_icon()
|
||||
|
||||
Reference in New Issue
Block a user