Skip to content

Commit

Permalink
lua-looking IFdef usage to detect satyrs existing or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yawet330 committed Apr 29, 2024
1 parent 2d878eb commit 3a636d1
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions monkestation/code/modules/nabbers/code/_nabbers.dm
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
#define NABBER_DAMAGE_ONBURNING 5
//Handles species
/datum/species/nabber
name = "Giant Armored Serpentid"
id = SPECIES_NABBER
eyes_icon = 'monkestation/code/modules/nabbers/icons/organs/nabber_eyes_new.dmi'
#ifdef TRAIT_HARD_SOLES //Checks to see if this trait exists.
/datum/species/nabber //If Hard_soles is detected, apply it to their inherent_traits. Cross-Testmerge compatability!
inherent_traits = list(
TRAIT_ADVANCEDTOOLUSER,
TRAIT_PUSHIMMUNE, //You aint pushing it, chief.
TRAIT_LIGHT_STEP, //Can't wear shoes
TRAIT_RESISTLOWPRESSURE,
TRAIT_HARD_SOLES,
TRAIT_RADIMMUNE //Flavor
)
#else
/datum/species/nabber //If hard soles does not exist (Satyrs not merged/Testmerged)
inherent_traits = list(
TRAIT_ADVANCEDTOOLUSER,
TRAIT_PUSHIMMUNE, //You aint pushing it, chief.
TRAIT_LIGHT_STEP, //Can't wear shoes
TRAIT_RESISTLOWPRESSURE,
TRAIT_RADIMMUNE //Flavor
)
#endif
//Handles species
/datum/species/nabber
name = "Giant Armored Serpentid"
id = SPECIES_NABBER
eyes_icon = 'monkestation/code/modules/nabbers/icons/organs/nabber_eyes_new.dmi'
visual_gender = FALSE
species_traits = list(
MUTCOLORS,
Expand Down

0 comments on commit 3a636d1

Please sign in to comment.