Adds defines for species and bodytypes (#9707)

This commit is contained in:
Cyantime
2020-08-24 13:59:24 +02:00
committed by GitHub
parent 02f436ce3d
commit 1a8940bbd8
148 changed files with 880 additions and 783 deletions
+1 -1
View File
@@ -93,7 +93,7 @@
max_damage = min_broken_damage * 2
if(istype(holder))
src.owner = holder
species = all_species["Human"]
species = all_species[SPECIES_HUMAN]
if(holder.dna)
dna = holder.dna.Clone()
species = all_species[dna.species]
+1 -1
View File
@@ -1038,7 +1038,7 @@ Note that amputating the affected organ does in fact remove the infection from t
if(company)
model = company
var/datum/robolimb/R = all_robolimbs[company]
/*if(species && !(species.name in R.species_can_use && species.get_bodytype() != "Machine"))
/*if(species && !(species.name in R.species_can_use && species.get_bodytype() != BODYTYPE_IPC))
R = basic_robolimb*/
if(R)
if (!force_skintone)
+21 -21
View File
@@ -20,19 +20,19 @@ var/global/datum/robolimb/basic_robolimb
var/unavailable_at_chargen // If set, not available at chargen.
var/lifelike = FALSE // If set, appears organic.
var/list/species_can_use = list(
"Human",
"Skrell",
"Tajara",
"Zhan-Khazan Tajara",
"M'sai Tajara",
"Unathi",
"Vaurca Worker",
"Vaurca Warrior",
"Baseline Frame",
"Off-Worlder Human"
SPECIES_HUMAN,
SPECIES_SKRELL,
SPECIES_TAJARA,
SPECIES_TAJARA_ZHAN,
SPECIES_TAJARA_MSAI,
SPECIES_UNATHI,
SPECIES_VAURCA_WORKER,
SPECIES_VAURCA_WARRIOR,
SPECIES_IPC,
SPECIES_HUMAN_OFFWORLD
)
var/paintable = 0 //tired of istype exceptions. bullshit to find, and by god do i know it after this project.
var/linked_frame = "Unbranded Frame" //which machine species this limb will create
var/linked_frame = SPECIES_IPC_UNBRANDED //which machine species this limb will create
var/brute_mod = 0.9 //how resistant is this mode to brute damage
var/burn_mod = 1.1 //how resistant is this mode to burn damage
var/fabricator_available = FALSE //if you can print this limb in the robotics fabricator
@@ -44,28 +44,28 @@ var/global/datum/robolimb/basic_robolimb
company = PROSTHETIC_BC
desc = "This limb is coated in a brilliant silver illuminated from the inside with blue status lights."
icon = 'icons/mob/human_races/ipc/r_ind_bishop.dmi'
linked_frame = "Bishop Accessory Frame"
linked_frame = SPECIES_IPC_BISHOP
fabricator_available = TRUE
/datum/robolimb/hesphaistos
company = PROSTHETIC_HI
desc = "This limb is covered in thick plating coated with a militaristic olive drab."
icon = 'icons/mob/human_races/ipc/r_ind_hephaestus.dmi'
linked_frame = "Hephaestus G2 Industrial Frame"
linked_frame = SPECIES_IPC_G2
fabricator_available = TRUE
/datum/robolimb/zenghu
company = PROSTHETIC_ZH
desc = "This limb has sleek white plating over a graphene-based nanofiber weave."
icon = 'icons/mob/human_races/ipc/r_ind_zenghu.dmi'
linked_frame = "Zeng-Hu Mobility Frame"
linked_frame = SPECIES_IPC_ZENGHU
fabricator_available = TRUE
/datum/robolimb/xion
company = PROSTHETIC_XMG
desc = "This limb has a minimalist black and grey casing with exposed orange wiring channels."
icon = 'icons/mob/human_races/ipc/r_ind_xion.dmi'
linked_frame = "Xion Industrial Frame"
linked_frame = SPECIES_IPC_XION
fabricator_available = TRUE
/datum/robolimb/ipc
@@ -74,7 +74,7 @@ var/global/datum/robolimb/basic_robolimb
icon = 'icons/mob/human_races/ipc/r_machine.dmi'
unavailable_at_chargen = 1
paintable = 1
linked_frame = "Baseline Frame"
linked_frame = SPECIES_IPC
fabricator_available = TRUE
/datum/robolimb/industrial
@@ -82,7 +82,7 @@ var/global/datum/robolimb/basic_robolimb
desc = "This limb is more robust than the standard Hephaestus Integrated Limb, and is better suited for industrial machinery."
icon = 'icons/mob/human_races/ipc/r_industrial.dmi'
unavailable_at_chargen = 1
linked_frame = "Hephaestus G1 Industrial Frame"
linked_frame = SPECIES_IPC_G1
fabricator_available = TRUE
/datum/robolimb/terminator
@@ -95,8 +95,8 @@ var/global/datum/robolimb/basic_robolimb
company = PROSTHETIC_SYNTHSKIN
desc = "This limb is designed to mimic the Human form. It does so with moderate success."
icon = 'icons/mob/human_races/human/r_human.dmi'
species_can_use = list("Human")
linked_frame = "Shell Frame"
species_can_use = list(SPECIES_HUMAN)
linked_frame = SPECIES_IPC_SHELL
fabricator_available = TRUE
lifelike = TRUE
@@ -104,14 +104,14 @@ var/global/datum/robolimb/basic_robolimb
company = PROSTHETIC_AUTAKH
desc = "This limb has been designed by the Aut'akh unathi sect."
icon = 'icons/mob/human_races/unathi/r_autakh.dmi'
species_can_use = list("Unathi")
species_can_use = list(SPECIES_UNATHI)
paintable = 1
/datum/robolimb/tesla
company = PROSTHETIC_TESLA
desc = "A limb designed to be used by the People's Republic of Adhomai Tesla Brigade. This civilian version is issued to disabled veterans and civilians."
icon = 'icons/mob/human_races/tajara/tesla_limbs.dmi'
species_can_use = list("Tajara", "Zhan-Khazan Tajara", "M'sai Tajara")
species_can_use = list(SPECIES_TAJARA, SPECIES_TAJARA_ZHAN, SPECIES_TAJARA_MSAI)
/datum/robolimb/tesla/malfunctioning_check(var/mob/living/carbon/human/H)
var/obj/item/organ/internal/augment/tesla/T = H.internal_organs_by_name[BP_AUG_TESLA]
+7 -7
View File
@@ -6,11 +6,11 @@
robotic = 2
emp_coeff = 2
is_augment = TRUE
species_restricted = list("Human","Off-Worlder Human",
"Tajara", "Zhan-Khazan Tajara", "M'sai Tajara",
"Unathi", "Skrell", "Baseline Frame", "Hephaestus G1 Industrial Frame",
"Hephaestus G2 Industrial Frame", "Xion Industrial Frame",
"Zeng-Hu Mobility Frame", "Bishop Accessory Frame", "Shell Frame")
species_restricted = list(SPECIES_HUMAN,SPECIES_HUMAN_OFFWORLD,
SPECIES_TAJARA, SPECIES_TAJARA_ZHAN, SPECIES_TAJARA_MSAI,
SPECIES_UNATHI, SPECIES_SKRELL, SPECIES_IPC, SPECIES_IPC_G1,
SPECIES_IPC_G2, SPECIES_IPC_XION,
SPECIES_IPC_ZENGHU, SPECIES_IPC_BISHOP, SPECIES_IPC_SHELL)
var/cooldown = 150
var/action_button_icon = "augment"
var/activable = FALSE
@@ -146,7 +146,7 @@
icon_state = "tesla_spine"
organ_tag = BP_AUG_TESLA
on_mob_icon = 'icons/mob/human_races/augments_external.dmi'
species_restricted = list("Tajara", "Zhan-Khazan Tajara", "M'sai Tajara")
species_restricted = list(SPECIES_TAJARA, SPECIES_TAJARA_ZHAN, SPECIES_TAJARA_MSAI)
var/max_charges = 1
var/actual_charges = 0
var/recharge_time = 5 //this is in minutes
@@ -258,7 +258,7 @@
organ_tag = BP_AUG_HAIR
activable = TRUE
action_button_name = "Activate Synthetic Hair Extensions"
species_restricted = list("Human","Off-Worlder Human", "Tajara", "Zhan-Khazan Tajara", "M'sai Tajara", "Shell Frame")
species_restricted = list(SPECIES_HUMAN,SPECIES_HUMAN_OFFWORLD, SPECIES_TAJARA, SPECIES_TAJARA_ZHAN, SPECIES_TAJARA_MSAI, SPECIES_IPC_SHELL)
/obj/item/organ/internal/augment/cyber_hair/attack_self(var/mob/user)
. = ..()