mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
Another small saddlebag fix.
-Figured out why saddlebags weren't showing up on subtype taurs. -Something something spaghrtti and now the iconstate sets accordingly to the main type name instead of subtype name. -I really need to sleep this is my last second awake tonight and hopefully this works?
This commit is contained in:
@@ -40,19 +40,41 @@
|
||||
var/icon_base = "saddlebag"
|
||||
max_storage_space = INVENTORY_DUFFLEBAG_SPACE //Saddlebags can hold more, like dufflebags
|
||||
slowdown = 1 //And are slower, too...Unless you're a macro, that is.
|
||||
var/list/taurtype = list(
|
||||
/datum/sprite_accessory/tail/taur/horse,
|
||||
/datum/sprite_accessory/tail/taur/wolf,
|
||||
/datum/sprite_accessory/tail/taur/cow,
|
||||
/datum/sprite_accessory/tail/taur/lizard,
|
||||
/datum/sprite_accessory/tail/taur/feline)
|
||||
var/no_message = "You aren't the appropriate taur type to wear this!"
|
||||
|
||||
mob_can_equip(var/mob/living/carbon/human/H, slot, disable_warning = 0)
|
||||
if(..())
|
||||
var/datum/sprite_accessory/tail/taur/TT = H.tail_style
|
||||
if(istype(H) && is_type_in_list(TT, taurtype))
|
||||
item_state = "[icon_base]_[TT]"
|
||||
if(istype(H) && istype(TT, /datum/sprite_accessory/tail/taur/horse))
|
||||
item_state = "[icon_base]_horse"
|
||||
if(H.size_multiplier >= RESIZE_BIG) //Are they a macro?
|
||||
slowdown = 0
|
||||
else
|
||||
slowdown = initial(slowdown)
|
||||
return 1
|
||||
if(istype(H) && istype(TT, /datum/sprite_accessory/tail/taur/wolf))
|
||||
item_state = "[icon_base]_wolf"
|
||||
if(H.size_multiplier >= RESIZE_BIG) //Are they a macro?
|
||||
slowdown = 0
|
||||
else
|
||||
slowdown = initial(slowdown)
|
||||
return 1
|
||||
if(istype(H) && istype(TT, /datum/sprite_accessory/tail/taur/cow))
|
||||
item_state = "[icon_base]_cow"
|
||||
if(H.size_multiplier >= RESIZE_BIG) //Are they a macro?
|
||||
slowdown = 0
|
||||
else
|
||||
slowdown = initial(slowdown)
|
||||
return 1
|
||||
if(istype(H) && istype(TT, /datum/sprite_accessory/tail/taur/lizard))
|
||||
item_state = "[icon_base]_lizard"
|
||||
if(H.size_multiplier >= RESIZE_BIG) //Are they a macro?
|
||||
slowdown = 0
|
||||
else
|
||||
slowdown = initial(slowdown)
|
||||
return 1
|
||||
if(istype(H) && istype(TT, /datum/sprite_accessory/tail/taur/feline))
|
||||
item_state = "[icon_base]_feline"
|
||||
if(H.size_multiplier >= RESIZE_BIG) //Are they a macro?
|
||||
slowdown = 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user