swap bodypart species checking to bitmap, fix surgery for monkey body… (#60280)

* swap bodypart species checking to bitmap, fix surgery for monkey bodyparts on monkeys

* fix part_origin so it is used correctly

* remove tabs, change DEFAULT_BODY to NULL_BODY

* add requested documentation

Co-authored-by: whitecas18 <whitecas18@students.ecu.edu>
This commit is contained in:
ArchPigeon
2021-08-09 11:40:03 -04:00
committed by GitHub
co-authored by whitecas18
parent 54a1257f4e
commit e2c5763ce0
6 changed files with 33 additions and 6 deletions
@@ -141,6 +141,11 @@ GLOBAL_LIST_EMPTY(roundstart_races)
/// The body temperature limit the body can take before it starts taking damage from cold.
var/bodytemp_cold_damage_limit = BODYTEMP_COLD_DAMAGE_LIMIT
///the species that body parts are surgically compatible with (found in _DEFINES/mobs.dm)
///current acceptable bitfields are HUMAN_BODY, ALIEN_BODY, LARVA_BODY, MONKEY_BODY, or NONE
var/allowed_animal_origin = HUMAN_BODY
///Species-only traits. Can be found in [code/__DEFINES/DNA.dm]
var/list/species_traits = list()
///Generic traits tied to having the species.
@@ -207,6 +212,8 @@ GLOBAL_LIST_EMPTY(roundstart_races)
///List of visual overlays created by handle_body()
var/list/body_vis_overlays = list()
///////////
// PROCS //
///////////
@@ -10,6 +10,7 @@
mutant_bodyparts = list("tail_monkey" = "Monkey")
skinned_type = /obj/item/stack/sheet/animalhide/monkey
meat = /obj/item/food/meat/slab/monkey
allowed_animal_origin = MONKEY_BODY
knife_butcher_results = list(/obj/item/food/meat/slab/monkey = 5, /obj/item/stack/sheet/animalhide/monkey = 1)
species_traits = list(HAS_FLESH,HAS_BONE,NO_UNDERWEAR,LIPS,NOEYESPRITES,NOBLOODOVERLAY,NOTRANSSTING, NOAUGMENTS)
inherent_traits = list(
@@ -43,6 +44,7 @@
payday_modifier = 1.5
/datum/species/monkey/random_name(gender,unique,lastname)
var/randname = "monkey ([rand(1,999)])"