Merge pull request #5295 from Anewbe/suit_sprite_issues
Spacesuits are now in their own dmi file
@@ -101,6 +101,7 @@
|
|||||||
#define INV_ACCESSORIES_DEF_ICON 'icons/mob/ties.dmi'
|
#define INV_ACCESSORIES_DEF_ICON 'icons/mob/ties.dmi'
|
||||||
#define INV_TIE_DEF_ICON 'icons/mob/ties.dmi'
|
#define INV_TIE_DEF_ICON 'icons/mob/ties.dmi'
|
||||||
#define INV_SUIT_DEF_ICON 'icons/mob/suit.dmi'
|
#define INV_SUIT_DEF_ICON 'icons/mob/suit.dmi'
|
||||||
|
#define INV_SPACESUIT_DEF_ICON 'icons/mob/spacesuit.dmi'
|
||||||
#define INV_WEAR_ID_DEF_ICON 'icons/mob/mob.dmi'
|
#define INV_WEAR_ID_DEF_ICON 'icons/mob/mob.dmi'
|
||||||
#define INV_GLOVES_DEF_ICON 'icons/mob/hands.dmi'
|
#define INV_GLOVES_DEF_ICON 'icons/mob/hands.dmi'
|
||||||
#define INV_EYES_DEF_ICON 'icons/mob/eyes.dmi'
|
#define INV_EYES_DEF_ICON 'icons/mob/eyes.dmi'
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ GLOBAL_LIST_BOILERPLATE(all_clothing, /obj/item/clothing)
|
|||||||
var/ear_protection = 0
|
var/ear_protection = 0
|
||||||
var/blood_sprite_state
|
var/blood_sprite_state
|
||||||
|
|
||||||
|
var/update_icon_define = null // Only needed if you've got multiple files for the same type of clothing
|
||||||
|
|
||||||
//Updates the icons of the mob wearing the clothing item, if any.
|
//Updates the icons of the mob wearing the clothing item, if any.
|
||||||
/obj/item/clothing/proc/update_clothing_icon()
|
/obj/item/clothing/proc/update_clothing_icon()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -49,6 +49,8 @@
|
|||||||
/obj/item/clothing/suit/space
|
/obj/item/clothing/suit/space
|
||||||
name = "Space suit"
|
name = "Space suit"
|
||||||
desc = "A suit that protects against low pressure environments."
|
desc = "A suit that protects against low pressure environments."
|
||||||
|
icon = 'icons/obj/clothing/spacesuits.dmi'
|
||||||
|
update_icon_define = INV_SPACESUIT_DEF_ICON
|
||||||
icon_state = "space"
|
icon_state = "space"
|
||||||
w_class = ITEMSIZE_HUGE // So you can't fit this in your bag and be prepared at all times.
|
w_class = ITEMSIZE_HUGE // So you can't fit this in your bag and be prepared at all times.
|
||||||
gas_transfer_coefficient = 0.01
|
gas_transfer_coefficient = 0.01
|
||||||
|
|||||||
@@ -711,7 +711,14 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
|
|||||||
if(!wear_suit)
|
if(!wear_suit)
|
||||||
return //No point, no suit.
|
return //No point, no suit.
|
||||||
|
|
||||||
overlays_standing[SUIT_LAYER] = wear_suit.make_worn_icon(body_type = species.get_bodytype(src), slot_name = slot_wear_suit_str, default_icon = INV_SUIT_DEF_ICON, default_layer = SUIT_LAYER)
|
// Part of splitting the suit sprites up
|
||||||
|
var/iconFile = INV_SUIT_DEF_ICON
|
||||||
|
if(istype(wear_suit, /obj/item/clothing/suit))
|
||||||
|
var/obj/item/clothing/suit/S = wear_suit
|
||||||
|
if(S.update_icon_define)
|
||||||
|
iconFile = S.update_icon_define
|
||||||
|
|
||||||
|
overlays_standing[SUIT_LAYER] = wear_suit.make_worn_icon(body_type = species.get_bodytype(src), slot_name = slot_wear_suit_str, default_icon = iconFile, default_layer = SUIT_LAYER)
|
||||||
|
|
||||||
apply_layer(SUIT_LAYER)
|
apply_layer(SUIT_LAYER)
|
||||||
|
|
||||||
|
|||||||
BIN
icons/mob/spacesuit.dmi
Normal file
|
After Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 472 KiB After Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
BIN
icons/obj/clothing/spacesuits.dmi
Normal file
|
After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 745 B |