Merge pull request #6601 from Mloc/bs12-calert

donut boxes now update their icon to properly reflect their contents
This commit is contained in:
Zuhayr
2014-10-06 19:37:24 +10:30
7 changed files with 49 additions and 39 deletions

View File

@@ -390,6 +390,7 @@
desc = "Goes great with Robust Coffee."
icon_state = "donut1"
filling_color = "#D9C386"
var/overlay_state = "box-donut1"
/obj/item/weapon/reagent_containers/food/snacks/donut/normal
name = "donut"
@@ -402,6 +403,7 @@
src.bitesize = 3
if(prob(30))
src.icon_state = "donut2"
src.overlay_state = "box-donut2"
src.name = "frosted donut"
reagents.add_reagent("sprinkles", 2)
@@ -440,6 +442,7 @@
reagents.add_reagent("tricordrazine", 3)
if(prob(30))
src.icon_state = "donut2"
src.overlay_state = "box-donut2"
src.name = "Frosted Chaos Donut"
reagents.add_reagent("sprinkles", 2)
@@ -458,6 +461,7 @@
bitesize = 5
if(prob(30))
src.icon_state = "jdonut2"
src.overlay_state = "box-donut2"
src.name = "Frosted Jelly Donut"
reagents.add_reagent("sprinkles", 2)
@@ -475,6 +479,7 @@
bitesize = 5
if(prob(30))
src.icon_state = "jdonut2"
src.overlay_state = "box-donut2"
src.name = "Frosted Jelly Donut"
reagents.add_reagent("sprinkles", 2)
@@ -492,6 +497,7 @@
bitesize = 5
if(prob(30))
src.icon_state = "jdonut2"
src.overlay_state = "box-donut2"
src.name = "Frosted Jelly Donut"
reagents.add_reagent("sprinkles", 2)