Merge pull request #111 from surftheseawing/master

Fix calorite golem
This commit is contained in:
GDLW
2023-05-13 17:08:17 +02:00
committed by GitHub
3 changed files with 5 additions and 9 deletions
@@ -79,24 +79,20 @@ var/charges = 3
to_chat(owner, "<span class='notice'>You recharge yourself with magical energy!</span>")
/datum/action/innate/bless/Activate()
if(charges != 0)
charges -= 1
if(ishuman(owner))
to_chat(owner, "<span class='notice'>You bless the food around you!</span>")
for(var/obj/item/reagent_containers/food/O in view(1, owner))
if(O.foodtype != BLESSED)
for(var/obj/item/reagent_containers/food/O in view(1, owner))
if(!O.blessed)
O.reagents.add_reagent(/datum/reagent/consumable/nutriment, 10)
O.desc += " It faintly glows with warm, orange energy..."
O.foodtype = BLESSED
O.blessed = 1
else
to_chat(owner, "<span class='notice'>You need to recharge...</span>")
/datum/action/innate/unburden/Activate()
if(charges != 0)
charges -= 1
-1
View File
@@ -14,7 +14,6 @@
#define BREAKFAST (1<<13)
#define CLOTH (1<<14)
#define ANTITOXIC (1<<15)
#define BLESSED (1<<16)
#define DRINK_NICE 1
#define DRINK_GOOD 2
+2 -1
View File
@@ -15,6 +15,7 @@
resistance_flags = FLAMMABLE
var/foodtype = NONE
var/last_check_time
var/blessed = 0 // GS13
/obj/item/reagent_containers/food/Initialize(mapload)
. = ..()
@@ -47,4 +48,4 @@
SEND_SIGNAL(H, COMSIG_ADD_MOOD_EVENT, "breakfast", /datum/mood_event/breakfast)
last_check_time = world.time
#undef STOP_SERVING_BREAKFAST
#undef STOP_SERVING_BREAKFAST