Adds a new meat steak sprite (#7351)

This commit is contained in:
Alberyk
2019-11-13 15:39:51 -03:00
committed by Werner
parent b384eba3bd
commit 025febea72
5 changed files with 31 additions and 2 deletions

View File

@@ -55,6 +55,9 @@
name = "plate" name = "plate"
icon_state = "plate" icon_state = "plate"
/obj/item/trash/plate/steak
icon_state = "steak"
/obj/item/trash/snack_bowl /obj/item/trash/snack_bowl
name = "snack bowl" name = "snack bowl"
icon_state = "snack_bowl" icon_state = "snack_bowl"

View File

@@ -428,6 +428,10 @@
if (reagents) if (reagents)
on_consume(user) on_consume(user)
/obj/item/weapon/reagent_containers/food/snacks/on_reagent_change()
update_icon()
return
////////////////////////////////////////////////// //////////////////////////////////////////////////
////////////////////////////////////////////Snacks ////////////////////////////////////////////Snacks
////////////////////////////////////////////////// //////////////////////////////////////////////////
@@ -1701,8 +1705,8 @@
/obj/item/weapon/reagent_containers/food/snacks/meatsteak /obj/item/weapon/reagent_containers/food/snacks/meatsteak
name = "meat steak" name = "meat steak"
desc = "A piece of hot spicy meat." desc = "A piece of hot spicy meat."
icon_state = "meatstake" icon_state = "steak"
trash = /obj/item/trash/plate trash = /obj/item/trash/plate/steak
filling_color = "#7A3D11" filling_color = "#7A3D11"
center_of_mass = list("x"=16, "y"=13) center_of_mass = list("x"=16, "y"=13)
bitesize = 2 bitesize = 2
@@ -1714,6 +1718,22 @@
reagents.add_reagent("sodiumchloride", 1) reagents.add_reagent("sodiumchloride", 1)
reagents.add_reagent("blackpepper", 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 /obj/item/weapon/reagent_containers/food/snacks/spacylibertyduff
name = "spacy liberty duff" name = "spacy liberty duff"
desc = "Jello gelatin, from Alfred Hubbard's cookbook." desc = "Jello gelatin, from Alfred Hubbard's cookbook."

View File

@@ -0,0 +1,6 @@
author: Alberyk, BRAINOS
delete-after: True
changes:
- imageadd: "Added a new meat steak sprite."

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB