diff --git a/code/modules/client/preference/loadout/loadout_racial.dm b/code/modules/client/preference/loadout/loadout_racial.dm new file mode 100644 index 00000000000..e9d89a31d34 --- /dev/null +++ b/code/modules/client/preference/loadout/loadout_racial.dm @@ -0,0 +1,40 @@ +/datum/gear/racial + sort_category = "Racial" + subtype_path = /datum/gear/racial + cost = 2 + + +/datum/gear/racial/tajciv + display_name = "embroidered veil" + description = "A common traditional nano-fiber veil worn by many Tajaran, It is rare and offensive to see it on other races." + path = /obj/item/clothing/glasses/tajblind + +/datum/gear/racial/tajsec + display_name = "sleek veil" + description = "A common traditional nano-fiber veil worn by many Tajaran, It is rare and offensive to see it on other races. This one has an in-built security HUD." + path = /obj/item/clothing/glasses/hud/security/tajblind + allowed_roles = list("Head of Security", "Warden", "Security Officer", "Security Pod Pilot", "Internal Affairs Agent", "Magistrate") + +/datum/gear/racial/tajmed + display_name = "lightweight veil" + description = "A common traditional nano-fiber veil worn by many Tajaran, It is rare and offensive to see it on other races. This one has an in-built medical HUD." + path = /obj/item/clothing/glasses/hud/health/tajblind + allowed_roles = list("Chief Medical Officer", "Medical Doctor", "Chemist", "Psychiatrist", "Paramedic", "Virologist", "Brig Physician") + +/datum/gear/racial/tajsci + display_name = "hi-tech veil" + description = "A common traditional nano-fiber veil worn by many Tajaran, It is rare and offensive to see it on other races." + path = /obj/item/clothing/glasses/tajblind/sci + allowed_roles = list("Scientist", "Research Director", "Robotocist") + +/datum/gear/racial/tajeng + display_name = "industrial veil" + description = "A common traditional nano-fiber veil worn by many Tajaran, It is rare and offensive to see it on other races." + path = /obj/item/clothing/glasses/tajblind/eng + allowed_roles = list("Chief Engineer", "Station Engineer", "Mechanic", "Life Support Specialist") + +/datum/gear/racial/tajcargo + display_name = "khaki veil" + description = "A common traditional nano-fiber veil worn by many Tajaran, It is rare and offensive to see it on other races. It is light and comfy!" + path = /obj/item/clothing/glasses/tajblind/cargo + allowed_roles = list("Quartermaster","Cargo Technician", "Miner") \ No newline at end of file diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index 9fe951a7dc7..febc8d5b306 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -495,4 +495,46 @@ else to_chat(user, "The eye winks at you and vanishes into the abyss, you feel really unlucky.") qdel(src) - ..() \ No newline at end of file + ..() + +/obj/item/clothing/glasses/tajblind + name = "embroidered veil" + desc = "An Ahdominian made veil that allows the user to see while obscuring their eyes." + icon_state = "tajblind" + item_state = "tajblind" + flags_cover = GLASSESCOVERSEYES + actions_types = list(/datum/action/item_action/toggle) + up = 0 + tint = 0 + +/obj/item/clothing/glasses/tajblind/eng + name = "industrial veil" + icon_state = "tajblind_engi" + item_state = "tajblind_engi" + +/obj/item/clothing/glasses/tajblind/sci + name = "hi-tech veil" + icon_state = "tajblind_sci" + item_state = "tajblind_sci" + +/obj/item/clothing/glasses/tajblind/cargo + name = "khaki veil" + icon_state = "tajblind_cargo" + item_state = "tajblind_cargo" + +/obj/item/clothing/glasses/tajblind/attack_self() + toggle_veil() + +/obj/item/clothing/glasses/proc/toggle_veil() + if(usr.canmove && !usr.incapacitated()) + if(up) + up = !up + tint = initial(tint) + to_chat(usr, "You activate [src], allowing you to see.") + else + up = !up + tint = 3 + to_chat(usr, "You deactivate [src], obscuring your vision.") + var/mob/living/carbon/user = usr + user.update_tint() + user.update_inv_glasses() \ No newline at end of file diff --git a/code/modules/clothing/glasses/hud.dm b/code/modules/clothing/glasses/hud.dm index 18d9b26361f..38fd0d38ace 100644 --- a/code/modules/clothing/glasses/hud.dm +++ b/code/modules/clothing/glasses/hud.dm @@ -9,6 +9,7 @@ /obj/item/clothing/glasses/hud/equipped(mob/living/carbon/human/user, slot) + ..() if(HUDType && slot == slot_glasses) var/datum/atom_hud/H = huds[HUDType] H.add_hud_to(user) @@ -133,4 +134,28 @@ item_state = "glasses" darkness_view = 8 invis_view = SEE_INVISIBLE_MINIMUM //don't render darkness while wearing these - prescription_upgradable = 0 \ No newline at end of file + prescription_upgradable = 0 + +/obj/item/clothing/glasses/hud/security/tajblind + name = "sleek veil" + desc = "An Ahdominian made veil that allows the user to see while obscuring their eyes. This one has an in-built security HUD." + icon_state = "tajblind_sec" + item_state = "tajblind_sec" + flags_cover = GLASSESCOVERSEYES + actions_types = list(/datum/action/item_action/toggle) + up = 0 + +/obj/item/clothing/glasses/hud/security/tajblind/attack_self() + toggle_veil() + +/obj/item/clothing/glasses/hud/health/tajblind + name = "lightweight veil" + desc = "An Ahdominian made veil that allows the user to see while obscuring their eyes. This one has an installed medical HUD." + icon_state = "tajblind_med" + item_state = "tajblind_med" + flags_cover = GLASSESCOVERSEYES + actions_types = list(/datum/action/item_action/toggle) + up = 0 + +/obj/item/clothing/glasses/hud/health/tajblind/attack_self() + toggle_veil() \ No newline at end of file diff --git a/icons/mob/eyes.dmi b/icons/mob/eyes.dmi index fdf13394f20..d516d5f1983 100644 Binary files a/icons/mob/eyes.dmi and b/icons/mob/eyes.dmi differ diff --git a/icons/obj/clothing/glasses.dmi b/icons/obj/clothing/glasses.dmi index 227ec28b742..0f6aa860754 100644 Binary files a/icons/obj/clothing/glasses.dmi and b/icons/obj/clothing/glasses.dmi differ diff --git a/paradise.dme b/paradise.dme index ffe53541474..90e484bf1e4 100644 --- a/paradise.dme +++ b/paradise.dme @@ -1143,6 +1143,7 @@ #include "code\modules\client\preference\loadout\loadout_donor.dm" #include "code\modules\client\preference\loadout\loadout_general.dm" #include "code\modules\client\preference\loadout\loadout_hat.dm" +#include "code\modules\client\preference\loadout\loadout_racial.dm" #include "code\modules\client\preference\loadout\loadout_shoes.dm" #include "code\modules\client\preference\loadout\loadout_suit.dm" #include "code\modules\client\preference\loadout\loadout_uniform.dm"