Skip to content

Commit

Permalink
Merge pull request #4598 from MistakeNot4892/tweak/sprite_setting
Browse files Browse the repository at this point in the history
Cleaning up a lot of sprite_sheets setting.
  • Loading branch information
out-of-phaze authored Dec 5, 2024
2 parents 1a64b49 + fcfc41b commit a37b9ed
Show file tree
Hide file tree
Showing 25 changed files with 180 additions and 189 deletions.
2 changes: 1 addition & 1 deletion mods/content/fantasy/_fantasy.dme
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
#include "datum\kobaloi\species.dm"
#include "items\material_overrides.dm"
#include "items\clothing\_loadout.dm"
#include "items\clothing\_overrides.dm"
#include "items\clothing\_recipes.dm"
#include "items\clothing\armor.dm"
#include "items\clothing\glasses.dm"
#include "items\clothing\jerkin.dm"
#include "items\clothing\loincloth.dm"
#include "items\clothing\overrides.dm"
#include "items\clothing\trousers.dm"
#include "props\signpost.dm"
// END_INCLUDE
Expand Down
6 changes: 2 additions & 4 deletions mods/content/fantasy/datum/kobaloi/clothing.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/obj/item/bag/sack/Initialize()
. = ..()
if(!(BODYTYPE_KOBALOI in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_KOBALOI, 'mods/content/fantasy/icons/clothing/sack_kobaloi.dmi')
/obj/item/bag/sack
_kobaloi_onmob_icon = 'mods/content/fantasy/icons/clothing/sack_kobaloi.dmi'
15 changes: 15 additions & 0 deletions mods/content/fantasy/items/clothing/_overrides.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/obj/item
var/_kobaloi_onmob_icon
var/_hnoll_onmob_icon

/obj/item/setup_sprite_sheets()
. = ..()
if(_kobaloi_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_KOBALOI, _kobaloi_onmob_icon)
if(_hnoll_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_HNOLL, _hnoll_onmob_icon)

/obj/item/clothing/gloves/setup_equip_flags()
. = ..()
if(!isnull(bodytype_equip_flags) && !(bodytype_equip_flags & BODY_EQUIP_FLAG_EXCLUDE))
bodytype_equip_flags |= BODY_EQUIP_FLAG_HNOLL
2 changes: 1 addition & 1 deletion mods/content/fantasy/items/clothing/jerkin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
name = "jerkin"
desc = "A sturdy jerkin, worn on the upper body."
icon = 'mods/content/fantasy/icons/clothing/jerkin.dmi'
sprite_sheets = list(BODYTYPE_HNOLL = 'mods/content/fantasy/icons/clothing/jerkin_hnoll.dmi')
_hnoll_onmob_icon = 'mods/content/fantasy/icons/clothing/jerkin_hnoll.dmi'
material_alteration = MAT_FLAG_ALTERATION_COLOR | MAT_FLAG_ALTERATION_NAME | MAT_FLAG_ALTERATION_DESC
material = /decl/material/solid/organic/leather
2 changes: 1 addition & 1 deletion mods/content/fantasy/items/clothing/loincloth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
gender = NEUTER
desc = "A simple garment that is worn around the legs and lower body."
icon = 'mods/content/fantasy/icons/clothing/loincloth.dmi'
sprite_sheets = list(BODYTYPE_HNOLL = 'mods/content/fantasy/icons/clothing/loincloth_hnoll.dmi')
_hnoll_onmob_icon = 'mods/content/fantasy/icons/clothing/loincloth_hnoll.dmi'
material_alteration = MAT_FLAG_ALTERATION_COLOR | MAT_FLAG_ALTERATION_NAME | MAT_FLAG_ALTERATION_DESC
material = /decl/material/solid/organic/skin/fur

Expand Down
4 changes: 0 additions & 4 deletions mods/content/fantasy/items/clothing/overrides.dm

This file was deleted.

8 changes: 2 additions & 6 deletions mods/content/fantasy/items/clothing/trousers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
material_alteration = MAT_FLAG_ALTERATION_COLOR | MAT_FLAG_ALTERATION_NAME | MAT_FLAG_ALTERATION_DESC
material = /decl/material/solid/organic/leather
color = /decl/material/solid/organic/leather::color
sprite_sheets = list(
BODYTYPE_HNOLL = 'mods/content/fantasy/icons/clothing/trousers_hnoll.dmi'
)
_hnoll_onmob_icon = 'mods/content/fantasy/icons/clothing/trousers_hnoll.dmi'

/obj/item/clothing/pants/trousers/jerkin/Initialize()
. = ..()
Expand All @@ -20,6 +18,4 @@
name = "braies"
desc = "Some short trousers. Comfortable and easy to wear."
icon = 'mods/content/fantasy/icons/clothing/braies.dmi'
sprite_sheets = list(
BODYTYPE_HNOLL = 'mods/content/fantasy/icons/clothing/braies_hnoll.dmi'
)
_hnoll_onmob_icon = 'mods/content/fantasy/icons/clothing/braies_hnoll.dmi'
1 change: 1 addition & 0 deletions mods/species/ascent/_ascent.dme
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "datum\species_bodytypes.dm"
#include "datum\traits.dm"
#include "effects\razorweb.dm"
#include "items\_overrides.dm"
#include "items\cell.dm"
#include "items\clothing.dm"
#include "items\clustertool.dm"
Expand Down
10 changes: 10 additions & 0 deletions mods/species/ascent/items/_overrides.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/obj/item
var/_alate_onmob_icon
var/_gyne_onmob_icon

/obj/item/setup_sprite_sheets()
. = ..()
if(_alate_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_MANTID_SMALL, _alate_onmob_icon)
if(_gyne_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_MANTID_LARGE, _gyne_onmob_icon)
12 changes: 4 additions & 8 deletions mods/species/ascent/items/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
desc = "An alien facemask with chunky gas filters and a breathing valve."
filter_water = TRUE
icon = 'mods/species/ascent/icons/clothing/mask.dmi'
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/clothing/mask_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/clothing/mask_gyne.dmi'
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
filtered_gases = list(
/decl/material/gas/nitrous_oxide,
Expand All @@ -38,27 +38,23 @@
desc = "A set of powerful gripping claws."
icon = 'mods/species/ascent/icons/magboots/boots.dmi'
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
sprite_sheets = list(
BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/magboots/boots_gyne.dmi'
)
_gyne_onmob_icon = 'mods/species/ascent/icons/magboots/boots_gyne.dmi'

/obj/item/clothing/jumpsuit/ascent
name = "mantid undersuit"
desc = "A ribbed, spongy undersuit of some sort. It has a big sleeve for a tail, so it probably isn't for humans."
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
icon = 'mods/species/ascent/icons/clothing/under.dmi'
color = COLOR_DARK_GUNMETAL
sprite_sheets = list(
BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/clothing/under_gyne.dmi'
)
_gyne_onmob_icon = 'mods/species/ascent/icons/clothing/under_gyne.dmi'

/obj/item/clothing/suit/ascent
name = "mantid gear harness"
desc = "A complex tangle of articulated cables and straps."
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
icon_state = ICON_STATE_WORLD
icon = 'mods/species/ascent/icons/clothing/under_harness.dmi'
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/clothing/under_harness_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/clothing/under_harness_gyne.dmi'
body_parts_covered = 0
slot_flags = SLOT_OVER_BODY | SLOT_LOWER_BODY
storage = /datum/storage/pockets/suit
Expand Down
2 changes: 1 addition & 1 deletion mods/species/ascent/items/guns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
list(mode_name="shock", projectile_type = /obj/item/projectile/beam/stun/shock),
list(mode_name="lethal", projectile_type = /obj/item/projectile/beam/particle)
)
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/particle_rifle/inhands_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/particle_rifle/inhands_gyne.dmi'

/obj/item/gun/energy/particle/small
name = "particle projector"
Expand Down
11 changes: 5 additions & 6 deletions mods/species/ascent/items/rig.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
name = "alate support exosuit"
desc = "A powerful support exosuit with integrated power supply, weapon and atmosphere. It's closer to a mech than a rig."
icon = 'mods/species/ascent/icons/rig/rig.dmi'

suit_type = "support exosuit"
armor = list(
ARMOR_MELEE = ARMOR_MELEE_MAJOR,
Expand All @@ -28,7 +27,7 @@
gloves = /obj/item/clothing/gloves/rig/mantid

update_visible_name = TRUE
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/rig/rig_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/rig/rig_gyne.dmi'
initial_modules = list(
/obj/item/rig_module/vision/thermal,
/obj/item/rig_module/ai_container,
Expand Down Expand Up @@ -241,7 +240,7 @@
desc = "More like a torpedo casing than a helmet."
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
icon = 'mods/species/ascent/icons/rig/rig_helmet.dmi'
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/rig/rig_helmet_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/rig/rig_helmet_gyne.dmi'

/obj/item/clothing/suit/space/rig/mantid
desc = "It's closer to a mech than a suit."
Expand All @@ -255,16 +254,16 @@
/obj/item/stack/medical/resin,
/obj/item/chems/drinks/cans/waterbottle/ascent
)
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/rig/rig_chest_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/rig/rig_chest_gyne.dmi'

/obj/item/clothing/shoes/magboots/rig/mantid
icon = 'mods/species/ascent/icons/rig/rig_boots.dmi'
desc = "It's like a highly advanced forklift."
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/rig/rig_boots_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/rig/rig_boots_gyne.dmi'

/obj/item/clothing/gloves/rig/mantid
icon = 'mods/species/ascent/icons/rig/rig_gloves.dmi'
desc = "They look like a cross between a can opener and a Swiss army knife the size of a shoebox."
bodytype_equip_flags = BODY_EQUIP_FLAG_GYNE | BODY_EQUIP_FLAG_ALATE
sprite_sheets = list(BODYTYPE_MANTID_LARGE = 'mods/species/ascent/icons/rig/rig_gloves_gyne.dmi')
_gyne_onmob_icon = 'mods/species/ascent/icons/rig/rig_gloves_gyne.dmi'
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#define SPECIES_SKRELL "Skrell"
#define SPECIES_TAJARA "Tajara"
#define SPECIES_LIZARD "Unathi"
#define SPECIES_ADHERENT "Adherent"
#define SPECIES_SKRELL "Skrell"
#define SPECIES_TAJARA "Tajara"
#define SPECIES_LIZARD "Unathi"
#define SPECIES_ADHERENT "Adherent"

#define BODYTYPE_FELINE "feline body"
#define BODYTYPE_ADHERENT "adherent body"

#define BODY_EQUIP_FLAG_FELINE BITFLAG(7)

/decl/modpack/bayliens
name = "Baystation 12 Aliens"
Expand Down
3 changes: 2 additions & 1 deletion mods/species/bayliens/_bayliens.dme
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifndef MODPACK_BAYLIENS
#define MODPACK_BAYLIENS
// BEGIN_INCLUDE
#include "bayliens.dm"
#include "_bayliens.dm"
#include "_overrides.dm"
#include "adherent\_adherent.dm"
#include "adherent\datum\culture.dm"
#include "adherent\datum\emotes.dm"
Expand Down
7 changes: 7 additions & 0 deletions mods/species/bayliens/_overrides.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/obj/item
var/_feline_onmob_icon

/obj/item/setup_sprite_sheets()
. = ..()
if(_feline_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_FELINE, _feline_onmob_icon)
2 changes: 0 additions & 2 deletions mods/species/bayliens/adherent/_adherent.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#define BODYTYPE_ADHERENT "adherent body"
#define LANGUAGE_ADHERENT "Protocol"

#define BP_FLOAT "floatation disc"
#define BP_JETS "maneuvering jets"
#define BP_COOLING_FINS "cooling fins"
Expand Down
2 changes: 0 additions & 2 deletions mods/species/bayliens/tajaran/_tajaran.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#define LANGUAGE_TAJARA "Siik'maas"
#define BODYTYPE_FELINE "feline body"
#define BODY_EQUIP_FLAG_FELINE BITFLAG(7)

/obj/item/clothing/setup_equip_flags()
. = ..()
Expand Down
85 changes: 34 additions & 51 deletions mods/species/bayliens/tajaran/machinery/suit_cycler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,53 @@
LAZYDISTINCTADD(available_bodytypes, BODYTYPE_FELINE)
. = ..()

/obj/item/clothing/suit/space/void/merc/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/merc/suit.dmi')
/obj/item/clothing/suit/space/void/merc
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/merc/suit.dmi'

/obj/item/clothing/suit/space/void/swat/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/deathsquad/suit.dmi')
/obj/item/clothing/suit/space/void/swat
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/deathsquad/suit.dmi'

/obj/item/clothing/suit/space/void/engineering/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/engineering/suit.dmi')
/obj/item/clothing/suit/space/void/engineering
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/engineering/suit.dmi'

/obj/item/clothing/suit/space/void/mining/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/mining/suit.dmi')
/obj/item/clothing/suit/space/void/mining
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/mining/suit.dmi'

/obj/item/clothing/suit/space/void/medical/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/medical/suit.dmi')
/obj/item/clothing/suit/space/void/medical
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/medical/suit.dmi'

/obj/item/clothing/suit/space/void/security/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/sec/suit.dmi')
/obj/item/clothing/suit/space/void/security
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/sec/suit.dmi'

/obj/item/clothing/suit/space/void/atmos/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/atmos/suit.dmi')
/obj/item/clothing/suit/space/void/atmos
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/atmos/suit.dmi'

/obj/item/clothing/suit/space/void/engineering/alt/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/engineering_alt/suit.dmi')
/obj/item/clothing/suit/space/void/engineering/alt
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/engineering_alt/suit.dmi'

/obj/item/clothing/suit/space/void/mining/alt/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/mining_alt/suit.dmi')
/obj/item/clothing/suit/space/void/mining/alt
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/mining_alt/suit.dmi'

/obj/item/clothing/suit/space/void/medical/alt/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/medical_alt/suit.dmi')
/obj/item/clothing/suit/space/void/medical/alt
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/medical_alt/suit.dmi'

/obj/item/clothing/suit/space/void/security/alt/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/sec_alt/suit.dmi')
/obj/item/clothing/suit/space/void/security/alt
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/sec_alt/suit.dmi'

/obj/item/clothing/suit/space/void/atmos/alt/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/atmos_alt/suit.dmi')
/obj/item/clothing/suit/space/void/atmos/alt
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/atmos_alt/suit.dmi'

/obj/item/clothing/suit/space/void/engineering/salvage/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/salvage/suit.dmi')
/obj/item/clothing/suit/space/void/engineering/salvage
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/salvage/suit.dmi'

/obj/item/clothing/suit/space/void/expedition/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/pilot/suit.dmi')
/obj/item/clothing/suit/space/void/expedition
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/pilot/suit.dmi'

/obj/item/clothing/suit/space/void/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/nasa/suit.dmi')
/obj/item/clothing/suit/space/void
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/nasa/suit.dmi'

/obj/item/clothing/suit/space/void/wizard/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/wizard/suit.dmi')
/obj/item/clothing/suit/space/void/wizard
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/wizard/suit.dmi'

/obj/item/clothing/suit/space/void/excavation/setup_sprite_sheets()
. = ..()
LAZYSET(sprite_sheets, BODYTYPE_FELINE, 'mods/species/bayliens/tajaran/icons/clothing/excavation/suit.dmi')
/obj/item/clothing/suit/space/void/excavation
_feline_onmob_icon = 'mods/species/bayliens/tajaran/icons/clothing/excavation/suit.dmi'
1 change: 1 addition & 0 deletions mods/species/drakes/_drakes.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

// BEGIN_INCLUDE
#include "_drakes.dm"
#include "_overrides.dm"
#include "clothing.dm"
#include "culture.dm"
#include "drake_abilities.dm"
Expand Down
10 changes: 10 additions & 0 deletions mods/species/drakes/_overrides.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/obj/item
var/_drake_onmob_icon
var/_drake_hatchling_onmob_icon

/obj/item/backpack/setup_sprite_sheets()
. = ..()
if(_drake_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA, _drake_onmob_icon)
if(_drake_hatchling_onmob_icon)
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA_HATCHLING, _drake_hatchling_onmob_icon)
28 changes: 9 additions & 19 deletions mods/species/drakes/clothing.dm
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
/obj/item/backpack
_drake_onmob_icon = 'mods/species/drakes/icons/clothing/backpack.dmi'
_drake_hatchling_onmob_icon = 'mods/species/drakes/icons/clothing/hatchling_backpack.dmi'

/obj/item/backpack/setup_sprite_sheets()
. = ..()
if(!(BODYTYPE_GRAFADREKA in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA, 'mods/species/drakes/icons/clothing/backpack.dmi')
if(!(BODYTYPE_GRAFADREKA_HATCHLING in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA_HATCHLING, 'mods/species/drakes/icons/clothing/hatchling_backpack.dmi')
/obj/item/card/id
_drake_onmob_icon = 'mods/species/drakes/icons/clothing/id.dmi'
_drake_hatchling_onmob_icon = 'mods/species/drakes/icons/clothing/hatchling_id.dmi'

/obj/item/card/id/setup_sprite_sheets()
. = ..()
if(!(BODYTYPE_GRAFADREKA in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA, 'mods/species/drakes/icons/clothing/id.dmi')
if(!(BODYTYPE_GRAFADREKA_HATCHLING in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA_HATCHLING, 'mods/species/drakes/icons/clothing/hatchling_id.dmi')

/obj/item/bag/setup_sprite_sheets()
. = ..()
if(!(BODYTYPE_GRAFADREKA in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA, 'mods/species/drakes/icons/clothing/sack.dmi')
if(!(BODYTYPE_GRAFADREKA_HATCHLING in sprite_sheets))
LAZYSET(sprite_sheets, BODYTYPE_GRAFADREKA_HATCHLING, 'mods/species/drakes/icons/clothing/hatchling_backpack.dmi')
/obj/item/bag
_drake_onmob_icon = 'mods/species/drakes/icons/clothing/sack.dmi'
_drake_hatchling_onmob_icon = 'mods/species/drakes/icons/clothing/hatchling_backpack.dmi'
Loading

0 comments on commit a37b9ed

Please sign in to comment.