This commit is contained in:
DragonTrance
2021-02-11 20:02:40 -07:00
parent e00a0700b1
commit 58b69503e3
41 changed files with 495 additions and 159 deletions
+14 -2
View File
@@ -61,7 +61,19 @@
/obj/item/reagent_containers/food/snacks/grown/holymelon/Initialize()
. = ..()
AddComponent(/datum/component/anti_magic, TRUE, TRUE) //deliver us from evil o melon god
var/uses = 1
if(seed)
uses = round(seed.potency / 20)
AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, uses, TRUE, CALLBACK(src, .proc/block_magic), CALLBACK(src, .proc/expire)) //deliver us from evil o melon god
/obj/item/reagent_containers/food/snacks/grown/holymelon/proc/block_magic(mob/user, major)
if(major)
visible_message("<span class='warning'>[src] hums slightly, and seems to decay a bit.</span>")
/obj/item/reagent_containers/food/snacks/grown/holymelon/proc/expire(mob/user)
visible_message("<span class='warning'>[src] rapidly turns into ash!</span>")
qdel(src)
new /obj/effect/decal/cleanable/ash(drop_location())
//Milkmelon
/obj/item/seeds/watermelon/milk
@@ -83,4 +95,4 @@
filling_color = "#FFAABB"
dried_type = null
wine_power = 30
wine_flavor = "creamy"
wine_flavor = "creamy"