forked from TS-Rogue-Star/Rogue-Star
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'TS-Rogue-Star:master' into master
- Loading branch information
Showing
22 changed files
with
951 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
//TESHARI FACE MASK //Defning all the procs in one go | ||
/obj/item/clothing/mask/synthfacemask | ||
name = "Synth Face" | ||
desc = "A round dark muzzle made of LEDs." | ||
flags = PHORONGUARD //Since it cant easily be removed... | ||
item_flags = AIRTIGHT | FLEXIBLEMATERIAL | BLOCK_GAS_SMOKE_EFFECT //This should make it properly work as a mask... and allow you to eat stuff through it! | ||
body_parts_covered = FACE|EYES | ||
icon = 'icons/mob/species/teshari/synth_facemask.dmi' | ||
icon_override = 'icons/mob/species/teshari/synth_facemask.dmi' | ||
icon_state = "synth_facemask" | ||
// origin_tech = list(TECH_ILLEGAL = 1) // RS REMOVE - Loadout item | ||
var/lstat | ||
var/visor_state = "Neutral" //Separating this from lstat so that it could potentially be used for an override system or something | ||
var/mob/living/carbon/maskmaster | ||
|
||
/obj/item/clothing/mask/synthfacemask/equipped() | ||
..() | ||
var/mob/living/carbon/human/H = loc | ||
if(istype(H) && H.wear_mask == src) | ||
canremove = 0 | ||
maskmaster = H | ||
START_PROCESSING(SSprocessing, src) | ||
|
||
/obj/item/clothing/mask/synthfacemask/dropped() | ||
canremove = 1 | ||
maskmaster = null | ||
STOP_PROCESSING(SSprocessing, src) | ||
return ..() | ||
|
||
/obj/item/clothing/mask/synthfacemask/Destroy() | ||
. = ..() | ||
STOP_PROCESSING(SSprocessing, src) | ||
|
||
/obj/item/clothing/mask/synthfacemask/mob_can_equip(var/mob/living/carbon/human/user, var/slot, var/disable_warning = FALSE) | ||
if (!..()) | ||
return 0 | ||
if(istype(user)) | ||
var/obj/item/organ/external/E = user.organs_by_name[BP_HEAD] | ||
if(istype(E) && (E.robotic >= ORGAN_ROBOT)) | ||
return 1 | ||
to_chat(user, "<span class='warning'>You must have a compatible robotic head to install this upgrade.</span>") | ||
return 0 | ||
|
||
/obj/item/clothing/mask/synthfacemask/update_icon() | ||
var/mob/living/carbon/human/H = loc | ||
switch(visor_state) | ||
if (DEAD) | ||
icon_state = "synth_facemask_dead" | ||
else | ||
icon_state = "synth_facemask" | ||
if(istype(H)) H.update_inv_wear_mask() | ||
|
||
/obj/item/clothing/mask/synthfacemask/process() | ||
if(maskmaster && lstat != maskmaster.stat) | ||
lstat = maskmaster.stat | ||
visor_state = "Neutral" //This does nothing at the moment, but it's there incase anyone wants to add more states. | ||
//Maybe a verb that sets an emote override here | ||
if(lstat == DEAD) | ||
visor_state = DEAD | ||
update_icon() | ||
|
||
|
||
//LOADOUT ITEM | ||
/datum/gear/mask/synthface/ | ||
display_name = "Synth Facemask (Teshari)" | ||
path = /obj/item/clothing/mask/synthfacemask | ||
sort_category = "Xenowear" | ||
whitelisted = SPECIES_TESHARI | ||
cost = 1 | ||
|
||
/datum/gear/mask/synthface/New() | ||
..() | ||
gear_tweaks += list(gear_tweak_free_color_choice) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
/datum/species | ||
var/vore_belly_default_variant = "H" | ||
var/digest_pain = TRUE | ||
|
||
/datum/species/unathi | ||
vore_belly_default_variant = "L" | ||
|
||
/datum/species/teshari | ||
vore_belly_default_variant = "T" | ||
vore_belly_default_variant = "T" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.