mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
fix missing icon cache key generation data + poopy preview refresh (thanks verk <3)
This commit is contained in:
@@ -1301,15 +1301,6 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
|
|||||||
//CHOMPEdit START
|
//CHOMPEdit START
|
||||||
else if(href_list["digitigrade"])
|
else if(href_list["digitigrade"])
|
||||||
pref.digitigrade = !pref.digitigrade
|
pref.digitigrade = !pref.digitigrade
|
||||||
|
|
||||||
//I don't know how else to force a sprite update that doing the stupid thing below
|
|
||||||
pref.r_skin = 0
|
|
||||||
pref.b_skin = 0
|
|
||||||
if(pref.g_skin != 128)
|
|
||||||
pref.g_skin = 128
|
|
||||||
else
|
|
||||||
pref.g_skin = 135
|
|
||||||
|
|
||||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||||
//CHOMPEdit END
|
//CHOMPEdit END
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
@@ -293,6 +293,12 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
|
|||||||
if(tail_style.clip_mask) //VOREStation Edit.
|
if(tail_style.clip_mask) //VOREStation Edit.
|
||||||
icon_key += tail_style.clip_mask_state
|
icon_key += tail_style.clip_mask_state
|
||||||
|
|
||||||
|
//ChompEDIT START
|
||||||
|
//icon_key addition for digitigrade switch
|
||||||
|
if(part.species.digitigrade && (part.organ_tag == BP_R_LEG || part.organ_tag == BP_L_LEG || part.organ_tag == BP_R_FOOT || part.organ_tag == BP_L_FOOT))
|
||||||
|
icon_key += "_digi"
|
||||||
|
//ChompEDIT END
|
||||||
|
|
||||||
icon_key = "[icon_key][husk ? 1 : 0][fat ? 1 : 0][hulk ? 1 : 0][skeleton ? 1 : 0]"
|
icon_key = "[icon_key][husk ? 1 : 0][fat ? 1 : 0][hulk ? 1 : 0][skeleton ? 1 : 0]"
|
||||||
var/icon/base_icon
|
var/icon/base_icon
|
||||||
if(human_icon_cache[icon_key])
|
if(human_icon_cache[icon_key])
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
var/IB = species.icobase
|
var/IB = species.icobase
|
||||||
species.icobase = species.icodigi
|
species.icobase = species.icodigi
|
||||||
. = ..()
|
. = ..()
|
||||||
|
icon_cache_key += "_digi"
|
||||||
species.icobase = IB
|
species.icobase = IB
|
||||||
else
|
else
|
||||||
. = ..()
|
. = ..()
|
||||||
Reference in New Issue
Block a user