forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from honkpocket/le-bug
Insectoid base species
- Loading branch information
Showing
22 changed files
with
236 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
|
||
#define SPECIES_ANTHROMORPH "anthromorph" | ||
#define SPECIES_AQUATIC "aquatic" | ||
|
||
#define SPECIES_INSECTOID "insectoid" |
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
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
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
Binary file added
BIN
+1011 Bytes
...odules/unit_tests/screenshots/screenshot_humanoids__datum_species_insectoid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
5 changes: 5 additions & 0 deletions
5
...r/modular_customization/accessories/code/insectoid_accessories/insectoid_body_markings.dm
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,5 @@ | ||
/datum/sprite_accessory/lizard_markings/insectoid | ||
icon = 'modular_doppler/modular_customization/accessories/icons/insectoid/insectoid_markings.dmi' | ||
name = "Insectoid Pattern" | ||
icon_state = "insect" | ||
gender_specific = FALSE |
Binary file added
BIN
+737 Bytes
modular_doppler/modular_customization/accessories/icons/insectoid/insectoid_markings.dmi
Binary file not shown.
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,65 @@ | ||
/// Green blood reagent | ||
/datum/reagent/blood/green | ||
data = list("viruses"=null,"blood_DNA"=null,"blood_type"=null,"resistances"=null,"trace_chem"=null,"mind"=null,"ckey"=null,"gender"=null,"real_name"=null,"cloneable"=null,"factions"=null,"quirks"=null) | ||
name = "Green Blood" | ||
color = "#50c034" // rgb: 0, 200, 0 | ||
metabolization_rate = 12.5 * REAGENTS_METABOLISM //fast rate so it disappears fast. | ||
taste_description = "iron" | ||
taste_mult = 1.3 | ||
penetrates_skin = NONE | ||
ph = 7.4 | ||
default_container = /obj/item/reagent_containers/blood | ||
|
||
/// In this .dm we make a green bloodsplatter subtype | ||
// Using the xenoblood icons | ||
/obj/effect/decal/cleanable/blood/hitsplatter/green | ||
icon = 'modular_doppler/modular_species/icons/blood.dmi' | ||
icon_state = "xhitsplatter1" | ||
random_icon_states = list("xhitsplatter1", "xhitsplatter2", "xhitsplatter3") | ||
blood_state = BLOOD_STATE_XENO | ||
|
||
/obj/effect/temp_visual/dir_setting/bloodsplatter/green | ||
splatter_type = "xsplatter" | ||
|
||
/obj/effect/decal/cleanable/blood/green | ||
name = "green blood" | ||
desc = "It's green... And it looks like... <i>blood?</i>" | ||
icon = 'icons/effects/blood.dmi' | ||
icon_state = "xfloor1" | ||
random_icon_states = list("xfloor1", "xfloor2", "xfloor3", "xfloor4", "xfloor5", "xfloor6", "xfloor7") | ||
bloodiness = BLOOD_AMOUNT_PER_DECAL | ||
blood_state = BLOOD_STATE_XENO | ||
beauty = -250 | ||
clean_type = CLEAN_TYPE_BLOOD | ||
|
||
/obj/effect/decal/cleanable/blood/green/splatter | ||
random_icon_states = list("xgibbl1", "xgibbl2", "xgibbl3", "xgibbl4", "xgibbl5") | ||
|
||
/obj/effect/decal/cleanable/blood/green/splatter/over_window | ||
layer = ABOVE_WINDOW_LAYER | ||
plane = GAME_PLANE | ||
vis_flags = VIS_INHERIT_PLANE | ||
alpha = 180 | ||
|
||
/obj/effect/decal/cleanable/blood/green/splatter/over_window/NeverShouldHaveComeHere(turf/here_turf) | ||
return isgroundlessturf(here_turf) | ||
|
||
/obj/effect/decal/cleanable/blood/drip/green | ||
name = "drips of blood" | ||
desc = "It's green." | ||
icon = 'modular_doppler/modular_species/icons/blood.dmi' | ||
icon_state = "xdrip5" | ||
random_icon_states = list("xdrip1","xdrip2","xdrip3","xdrip4","xdrip5") | ||
should_dry = FALSE //human only thing | ||
blood_state = BLOOD_STATE_XENO | ||
beauty = -150 | ||
|
||
|
||
//getTrail overwrite | ||
/mob/living/carbon/human/getTrail() | ||
if(!(hasgreenblood(src))) | ||
return ..() | ||
if(getBruteLoss() < 300) | ||
return pick (list("xltrails_1", "xltrails2")) | ||
else | ||
return pick (list("xttrails_1", "xttrails2")) |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.59 KB
modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi
Binary file not shown.
Binary file added
BIN
+1.08 KB
modular_doppler/modular_species/species_types/insectoid/icons/eyes.dmi
Binary file not shown.
39 changes: 39 additions & 0 deletions
39
modular_doppler/modular_species/species_types/insectoid/insectoid.dm
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,39 @@ | ||
/mob/living/carbon/human/species/insectoid | ||
race = /datum/species/insectoid | ||
|
||
/datum/species/insectoid | ||
name = "\improper Insectoid" | ||
plural_form = "Insectoid" | ||
id = SPECIES_INSECTOID | ||
inherent_traits = list( | ||
TRAIT_MUTANT_COLORS, | ||
) | ||
body_markings = list(/datum/bodypart_overlay/simple/body_marking/lizard = "Insectoid Pattern") | ||
inherent_biotypes = MOB_ORGANIC|MOB_HUMANOID | ||
payday_modifier = 1.0 | ||
changesource_flags = MIRROR_BADMIN | WABBAJACK | MIRROR_PRIDE | MIRROR_MAGIC | RACE_SWAP | ERT_SPAWN | SLIME_EXTRACT | ||
exotic_blood = /datum/reagent/blood/green | ||
exotic_bloodtype = "I*" | ||
|
||
digitigrade_customization = DIGITIGRADE_OPTIONAL | ||
bodypart_overrides = list( | ||
BODY_ZONE_HEAD = /obj/item/bodypart/head/insectoid, | ||
BODY_ZONE_CHEST = /obj/item/bodypart/chest/insectoid, | ||
BODY_ZONE_L_ARM = /obj/item/bodypart/arm/left/insectoid, | ||
BODY_ZONE_R_ARM = /obj/item/bodypart/arm/right/insectoid, | ||
BODY_ZONE_L_LEG = /obj/item/bodypart/leg/left/insectoid, | ||
BODY_ZONE_R_LEG = /obj/item/bodypart/leg/right/insectoid, | ||
) | ||
digi_leg_overrides = list( | ||
BODY_ZONE_L_LEG = /obj/item/bodypart/leg/left/digitigrade/insectoid, | ||
BODY_ZONE_R_LEG = /obj/item/bodypart/leg/right/digitigrade/insectoid, | ||
) | ||
|
||
|
||
/datum/species/insectoid/get_species_description() | ||
return "Nothing yet." | ||
|
||
/datum/species/insectoid/get_species_lore() | ||
return list( | ||
"Nothing yet.", | ||
) |
49 changes: 49 additions & 0 deletions
49
modular_doppler/modular_species/species_types/insectoid/insectoid_bodyparts.dm
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,49 @@ | ||
/obj/item/bodypart/head/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
eyes_icon = 'modular_doppler/modular_species/species_types/insectoid/icons/eyes.dmi' | ||
limb_id = SPECIES_INSECTOID | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
is_dimorphic = FALSE | ||
|
||
/obj/item/bodypart/chest/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
limb_id = SPECIES_INSECTOID | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/arm/left/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
limb_id = SPECIES_INSECTOID | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/arm/right/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
limb_id = SPECIES_INSECTOID | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/leg/left/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
limb_id = SPECIES_INSECTOID | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/leg/left/digitigrade/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/leg/left/digitigrade/insectoid/update_limb(dropping_limb = FALSE, is_creating = FALSE) | ||
. = ..() | ||
if(limb_id == SPECIES_LIZARD) | ||
limb_id = SPECIES_INSECTOID | ||
|
||
/obj/item/bodypart/leg/right/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
limb_id = SPECIES_INSECTOID | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/leg/right/digitigrade/insectoid | ||
icon_greyscale = 'modular_doppler/modular_species/species_types/insectoid/icons/bodyparts.dmi' | ||
damage_overlay_color = COLOR_DARK_MODERATE_LIME_GREEN | ||
|
||
/obj/item/bodypart/leg/right/digitigrade/insectoid/update_limb(dropping_limb = FALSE, is_creating = FALSE) | ||
. = ..() | ||
if(limb_id == SPECIES_LIZARD) | ||
limb_id = SPECIES_INSECTOID |
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