Apply suggestions from code review

Ghommie fixes

Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
Trilbyspaceclone
2019-12-12 21:46:31 -05:00
committed by GitHub
parent bffe3b6da0
commit e6282e95c2
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -192,7 +192,7 @@
desc = "Contains coal and coal accessories. (Note: only ten coal sheets.)"
cost = 1000
crate_type = /obj/structure/closet/crate
contains = list(/obj/item/stack/sheet/mineral/coal/ten,)
contains = list(/obj/item/stack/sheet/mineral/coal/ten)
crate_name = "grilling fuel kit crate"
/datum/supply_pack/organic/cream_piee
@@ -52,10 +52,10 @@
grill_loop.start()
return
else
if(I.reagents.has_reagent(/datum/reagent/consumable/monkey_energy))
grill_fuel += (20 * (I.reagents.get_reagent_amount(/datum/reagent/consumable/monkey_energy)))
if(I.reagents.has_reagent("monkey_energy"))
grill_fuel += (20 * (I.reagents.get_reagent_amount("monkey_energy")))
to_chat(user, "<span class='notice'>You pour the Monkey Energy in [src].</span>")
I.reagents.remove_reagent(/datum/reagent/consumable/monkey_energy, I.reagents.get_reagent_amount(/datum/reagent/consumable/monkey_energy))
I.reagents.remove_reagent("monkey_energy", I.reagents.get_reagent_amount("monkey_energy"))
update_icon()
return
..()
@@ -73,7 +73,7 @@
smoke.start()
if(grilled_item)
grill_time += 1
grilled_item.reagents.add_reagent(/datum/reagent/consumable/char, 1)
grilled_item.reagents.add_reagent("char", 1)
grill_fuel -= 10
grilled_item.AddComponent(/datum/component/sizzle)
@@ -136,4 +136,4 @@
grill_loop.stop()
/obj/machinery/grill/unwrenched
anchored = FALSE
anchored = FALSE