mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
Adds a new meat steak sprite (#7351)
This commit is contained in:
@@ -55,6 +55,9 @@
|
||||
name = "plate"
|
||||
icon_state = "plate"
|
||||
|
||||
/obj/item/trash/plate/steak
|
||||
icon_state = "steak"
|
||||
|
||||
/obj/item/trash/snack_bowl
|
||||
name = "snack bowl"
|
||||
icon_state = "snack_bowl"
|
||||
|
||||
@@ -428,6 +428,10 @@
|
||||
if (reagents)
|
||||
on_consume(user)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/on_reagent_change()
|
||||
update_icon()
|
||||
return
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
////////////////////////////////////////////Snacks
|
||||
//////////////////////////////////////////////////
|
||||
@@ -1701,8 +1705,8 @@
|
||||
/obj/item/weapon/reagent_containers/food/snacks/meatsteak
|
||||
name = "meat steak"
|
||||
desc = "A piece of hot spicy meat."
|
||||
icon_state = "meatstake"
|
||||
trash = /obj/item/trash/plate
|
||||
icon_state = "steak"
|
||||
trash = /obj/item/trash/plate/steak
|
||||
filling_color = "#7A3D11"
|
||||
center_of_mass = list("x"=16, "y"=13)
|
||||
bitesize = 2
|
||||
@@ -1714,6 +1718,22 @@
|
||||
reagents.add_reagent("sodiumchloride", 1)
|
||||
reagents.add_reagent("blackpepper", 1)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/meatsteak/update_icon()
|
||||
var/percent = round((reagents.total_volume / 10) * 100)
|
||||
switch(percent)
|
||||
if(0 to 10)
|
||||
icon_state = "steak_10"
|
||||
if(11 to 25)
|
||||
icon_state = "steak_25"
|
||||
if(26 to 40)
|
||||
icon_state = "steak_40"
|
||||
if(41 to 60)
|
||||
icon_state = "steak_60"
|
||||
if(61 to 75)
|
||||
icon_state = "steak_75"
|
||||
if(76 to INFINITY)
|
||||
icon_state = "steak"
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/spacylibertyduff
|
||||
name = "spacy liberty duff"
|
||||
desc = "Jello gelatin, from Alfred Hubbard's cookbook."
|
||||
|
||||
Reference in New Issue
Block a user