Fixes broken holy water flask looking like a broken beer bottle (#73504)

Adds new inhand sprites for the broken holy flask, fixes broken holy water flask looking like a broken beer bottle and unholy flasks now use a blackened holy flask inhand sprite instead of the beaker one.
This commit is contained in:
Bloop
2023-02-20 02:21:05 -05:00
committed by GitHub
parent 4725f2e4a1
commit 61353d5f5e
4 changed files with 6 additions and 0 deletions
@@ -459,6 +459,9 @@ Striking a noncultist, however, will tear their flesh."}
desc = "Toxic to nonbelievers; reinvigorating to the faithful - this flask may be sipped or thrown."
icon = 'icons/obj/drinks/bottles.dmi'
icon_state = "holyflask"
inhand_icon_state = "holyflask"
lefthand_file = 'icons/mob/inhands/items/drinks_lefthand.dmi'
righthand_file = 'icons/mob/inhands/items/drinks_righthand.dmi'
color = "#333333"
list_reagents = list(/datum/reagent/fuel/unholywater = 50)
@@ -18,6 +18,7 @@
throwforce = 15
demolition_mod = 0.25
inhand_icon_state = "beer" //Generic held-item sprite until unique ones are made.
var/broken_inhand_icon_state = "broken_beer"
lefthand_file = 'icons/mob/inhands/items/drinks_lefthand.dmi'
righthand_file = 'icons/mob/inhands/items/drinks_righthand.dmi'
drink_type = ALCOHOL
@@ -40,6 +41,7 @@
if(!ranged && thrower)
thrower.put_in_hands(B)
B.mimic_broken(src, target, break_top)
B.inhand_icon_state = broken_inhand_icon_state
qdel(src)
target.Bumped(B)
@@ -305,6 +307,7 @@
icon = 'icons/obj/drinks/bottles.dmi'
icon_state = "holyflask"
inhand_icon_state = "holyflask"
broken_inhand_icon_state = "broken_holyflask"
list_reagents = list(/datum/reagent/water/holywater = 100)
drink_type = NONE