mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 23:21:02 +01:00
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user