game folder
This commit is contained in:
@@ -134,3 +134,239 @@
|
||||
/obj/item/weapon/storage/toolbox/brass/prefilled/ratvar/admin
|
||||
slab_type = /obj/item/clockwork/slab/debug
|
||||
proselytizer_type = /obj/item/clockwork/clockwork_proselytizer/scarab/debug
|
||||
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic
|
||||
name = "artistic toolbox"
|
||||
desc = "A toolbox painted bright green. Why anyone would store art supplies in a toolbox is beyond you, but it has plenty of extra space."
|
||||
icon_state = "green"
|
||||
item_state = "artistic_toolbox"
|
||||
max_combined_w_class = 20
|
||||
storage_slots = 10
|
||||
w_class = 5 //Holds more than a regular toolbox!
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/New()
|
||||
..()
|
||||
new/obj/item/weapon/storage/crayons(src)
|
||||
new/obj/item/weapon/crowbar(src)
|
||||
new/obj/item/stack/cable_coil/red(src)
|
||||
new/obj/item/stack/cable_coil/yellow(src)
|
||||
new/obj/item/stack/cable_coil/blue(src)
|
||||
new/obj/item/stack/cable_coil/green(src)
|
||||
new/obj/item/stack/cable_coil/pink(src)
|
||||
new/obj/item/stack/cable_coil/orange(src)
|
||||
new/obj/item/stack/cable_coil/cyan(src)
|
||||
new/obj/item/stack/cable_coil/white(src)
|
||||
|
||||
#define HIS_GRACE_SATIATED 0 //He hungers not. If bloodthirst is set to this, His Grace is asleep.
|
||||
#define HIS_GRACE_PECKISH 30 //Slightly hungry. Slightly increased damage and nothing else.
|
||||
#define HIS_GRACE_HUNGRY 60 //Getting closer. Increased danage and slight healing. It also starts eating anyone around it if it's left on the ground.
|
||||
#define HIS_GRACE_FAMISHED 90 //Dangerous. Highly increased damage, good healing, and stun resist. It also becomes nodrop at this point.
|
||||
#define HIS_GRACE_STARVING 110 //Incredibly close to breaking loose. Extreme damage and healing, and stun immunity.
|
||||
#define HIS_GRACE_CONSUME_OWNER 120 //You're dead, kiddo. The toolbox consumes its owner at this point and resets to zero.
|
||||
#define HIS_GRACE_FALL_ASLEEP 150 //If it reaches this point, it falls asleep and resets to zero.
|
||||
|
||||
//His Grace is a very special weapon granted only to traitor chaplains.
|
||||
//When awakened through sacrifice, it thirsts for blood and begins ticking a "bloodthirst" counter.
|
||||
//As His Grace grows hungrier, it grants its wielder various benefits.
|
||||
//If the wielder fails to feed His Grace in time, it will devour them.
|
||||
//Leaving His Grace alone for some time will reset its timer and put it to sleep.
|
||||
//Using His Grace effectively is a delicate balancing act of keeping it hungry enough to induce benefits but sated enough to let you live.
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace
|
||||
name = "artistic toolbox"
|
||||
desc = "A toolbox painted bright green. Looking at it makes you feel uneasy."
|
||||
origin_tech = "combat=4;engineering=4;syndicate=2"
|
||||
var/awakened = 0
|
||||
var/bloodthirst = HIS_GRACE_SATIATED
|
||||
var/victims = 0
|
||||
var/list/warning_messages = list("peckish", "hungry", "famished", "starving", "consume") //Messages that have NOT been shown
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/Destroy()
|
||||
for(var/mob/living/L in src)
|
||||
L.forceMove(get_turf(src))
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/attack_self(mob/living/user)
|
||||
if(!awakened)
|
||||
user << "<span class='notice'>[src] begins to vibrate...</span>"
|
||||
addtimer(CALLBACK(src, .proc/awaken), 50)
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/attack(mob/living/M, mob/user)
|
||||
if(awakened && M.stat)
|
||||
consume(M)
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/examine(mob/user)
|
||||
..()
|
||||
if(awakened)
|
||||
if(victims)
|
||||
user << "You hear the distant murmuring of [victims] victims to [src]."
|
||||
switch(bloodthirst)
|
||||
if(HIS_GRACE_SATIATED to HIS_GRACE_PECKISH)
|
||||
user << "<span class='danger'>[src] isn't very hungry. Not yet.</span>"
|
||||
if(HIS_GRACE_PECKISH to HIS_GRACE_HUNGRY)
|
||||
user << "<span class='danger'>[src] would like a snack.</span>"
|
||||
if(HIS_GRACE_HUNGRY to HIS_GRACE_FAMISHED)
|
||||
user << "<span class='warning'>[src] is quite hungry now...</span>"
|
||||
if(HIS_GRACE_FAMISHED to HIS_GRACE_STARVING)
|
||||
user << "<span class='boldannounce'>[src] is openly salivating at the sight of you. Be careful.</span>"
|
||||
if(HIS_GRACE_STARVING to HIS_GRACE_CONSUME_OWNER)
|
||||
user << "<span class='boldwarning'>You walk a fine line. [src] is very close to devouring you.</span>"
|
||||
if(HIS_GRACE_CONSUME_OWNER to HIS_GRACE_FALL_ASLEEP)
|
||||
user << "<span class='boldwarning'>[src] is shaking violently and staring directly at you.</span>"
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/relaymove(mob/living/user) //Allows changelings, etc. to climb out of the box after they revive
|
||||
user.forceMove(get_turf(src))
|
||||
user.visible_message("<span class='warning'>[user] scrambles out of [src]!</span>", "<span class='notice'>You climb out of [src]!</span>")
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/process()
|
||||
if(!awakened)
|
||||
return
|
||||
adjust_bloodthirst(1 + victims) //Maybe adjust this?
|
||||
change_phases()
|
||||
if(ishuman(loc))
|
||||
var/mob/living/carbon/human/master = loc
|
||||
switch(bloodthirst) //Handles benefits outside of stun absorbs, which are in change_phases()
|
||||
if(HIS_GRACE_HUNGRY to HIS_GRACE_FAMISHED)
|
||||
master.adjustBruteLoss(-1)
|
||||
master.adjustFireLoss(-1)
|
||||
master.adjustToxLoss(-0.5)
|
||||
master.adjustOxyLoss(-5)
|
||||
master.adjustCloneLoss(-0.5)
|
||||
if(HIS_GRACE_FAMISHED to HIS_GRACE_STARVING)
|
||||
master.adjustBruteLoss(-2)
|
||||
master.adjustFireLoss(-2)
|
||||
master.adjustToxLoss(-1)
|
||||
master.adjustOxyLoss(-10)
|
||||
master.adjustCloneLoss(-1)
|
||||
master.AdjustStunned(-1)
|
||||
master.AdjustWeakened(-1)
|
||||
if(HIS_GRACE_STARVING to HIS_GRACE_CONSUME_OWNER)
|
||||
master.adjustBruteLoss(-20) //The biggest danger at this point is the toolbox itself
|
||||
master.adjustFireLoss(-20)
|
||||
master.adjustToxLoss(-10)
|
||||
master.setOxyLoss(0)
|
||||
master.adjustCloneLoss(-5)
|
||||
master.add_stun_absorption("his_grace", 15, 1, null, null, "[src] shields them from harm!")
|
||||
if(HIS_GRACE_CONSUME_OWNER to HIS_GRACE_FALL_ASLEEP)
|
||||
master.visible_message("<span class='boldwarning'>[src] turns on its master!</span>", "<span class='userdanger'>[src] turns on you!</span>")
|
||||
playsound(src, 'sound/effects/tendril_destroyed.ogg', 100, 0)
|
||||
master.Weaken(3)
|
||||
master.adjustBruteLoss(100)
|
||||
playsound(master, 'sound/misc/desceration-03.ogg', 100, )
|
||||
playsound(master, 'sound/effects/splat.ogg', 100, 0)
|
||||
master.emote("scream")
|
||||
consume(master) //Y O U H A V E F A I L E D M E
|
||||
if(HIS_GRACE_FALL_ASLEEP to INFINITY)
|
||||
drowse()
|
||||
else
|
||||
if(bloodthirst >= HIS_GRACE_CONSUME_OWNER)
|
||||
if(bloodthirst >= HIS_GRACE_FALL_ASLEEP)
|
||||
drowse()
|
||||
return
|
||||
for(var/mob/living/L in range(1, src))
|
||||
if(L.loc == src)
|
||||
continue
|
||||
if(!L.stat)
|
||||
L.visible_message("<span class='warning'>[src] lunges at [L]!</span>", "<span class='userdanger'>[src] lunges at you!</span>")
|
||||
playsound(L, 'sound/effects/splat.ogg', 50, 1)
|
||||
playsound(L, 'sound/misc/desceration-01.ogg', 50, 1)
|
||||
L.adjustBruteLoss(force)
|
||||
return //Only one at a tome
|
||||
else
|
||||
consume(L)
|
||||
return
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/proc/awaken() //Attempts to awaken. This can only occur if organs fill the box, and gives out a global warning.
|
||||
if(awakened)
|
||||
return
|
||||
var/organ_count = 0
|
||||
for(var/obj/item/organ/O in src) //Doesn't have to be any kind, we're not picky
|
||||
organ_count++
|
||||
if(organ_count < 5)
|
||||
if(isliving(loc))
|
||||
loc = get_turf(src)
|
||||
visible_message("<span class='warning'>[src] stops shaking. It needs more organs.</span>")
|
||||
else
|
||||
for(var/obj/item/organ/O in src)
|
||||
qdel(O) //delicious flesh
|
||||
name = "His Grace"
|
||||
desc = "A bloodthirsty artefact created by a profane rite."
|
||||
gender = MALE
|
||||
visible_message("<span class='boldwarning'>[src] begins to rattle. It thirsts.</span>") //rattle me bones capn
|
||||
adjust_bloodthirst(1)
|
||||
awakened = 1
|
||||
send_to_playing_players("<span class='boldannounce'><font size=6>HIS GRACE THIRSTS FOR BLOOD</font></span>")
|
||||
send_to_playing_players('sound/effects/his_grace_awaken.ogg')
|
||||
icon_state = "green_awakened"
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/proc/drowse() //Falls asleep, spitting out all victims and resetting to zero.
|
||||
if(!awakened)
|
||||
return
|
||||
visible_message("<span class='boldwarning'>[src] slowly stops rattling and falls still... but it still lurks in its sleep.</span>")
|
||||
name = initial(name)
|
||||
desc = initial(desc)
|
||||
icon_state = initial(icon_state)
|
||||
gender = initial(gender)
|
||||
awakened = 0
|
||||
victims = 0
|
||||
warning_messages = initial(warning_messages)
|
||||
adjust_bloodthirst(-bloodthirst)
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
send_to_playing_players("<span class='boldannounce'><font size=6>HIS GRACE HAS RETURNED TO SLUMBER</font></span>")
|
||||
send_to_playing_players('sound/effects/pope_entry.ogg')
|
||||
for(var/mob/living/L in src)
|
||||
L.forceMove(get_turf(src))
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/proc/adjust_bloodthirst(amt)
|
||||
bloodthirst = min(max(1, bloodthirst + amt), HIS_GRACE_FALL_ASLEEP)
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/proc/consume(mob/living/meal)
|
||||
if(!meal)
|
||||
return
|
||||
meal.adjustBruteLoss(200)
|
||||
meal.visible_message("<span class='warning'>[src] pulls [meal] into itself!</span>", "<span class='userdanger'>[src] consumes you!</span>")
|
||||
playsound(meal, 'sound/misc/desceration-02.ogg', 75, 1)
|
||||
playsound(src, 'sound/items/eatfood.ogg', 100, 1)
|
||||
meal.forceMove(src)
|
||||
adjust_bloodthirst(-(bloodthirst - victims)) //Never fully sated, and it starts off higher as it eats
|
||||
victims++
|
||||
|
||||
/obj/item/weapon/storage/toolbox/artistic/his_grace/proc/change_phases()
|
||||
switch(bloodthirst)
|
||||
if(HIS_GRACE_SATIATED to HIS_GRACE_PECKISH)
|
||||
force = 15 //Constantly keep its power low if it's this full
|
||||
if(HIS_GRACE_PECKISH to HIS_GRACE_HUNGRY)
|
||||
if(is_string_in_list("peckish", warning_messages))
|
||||
remove_strings_from_list("peckish", warning_messages)
|
||||
loc.visible_message("<span class='warning'>[src] is feeling snackish.</span>", "<span class='danger'>[src] begins to hunger. Its damage has been increased.</span>")
|
||||
force = 20
|
||||
spawn(400) //To prevent spam
|
||||
if(src)
|
||||
warning_messages += "peckish"
|
||||
if(HIS_GRACE_HUNGRY to HIS_GRACE_FAMISHED)
|
||||
if(is_string_in_list("hungry", warning_messages))
|
||||
remove_strings_from_list("hungry", warning_messages)
|
||||
loc.visible_message("<span class='warning'>[src] is getting hungry. Its power grows.</span>", "<span class='boldannounce'>You feel a sense of hunger come over you. [src]'s damage has increased.</span>")
|
||||
force = 25
|
||||
spawn(400)
|
||||
if(src)
|
||||
warning_messages += "hungry"
|
||||
if(HIS_GRACE_FAMISHED to HIS_GRACE_STARVING)
|
||||
if(is_string_in_list("famished", warning_messages))
|
||||
remove_strings_from_list("famished", warning_messages)
|
||||
loc.visible_message("<span class='warning'>[src] is very hungry...</span>", "<span class='boldwarning'>Bloodlust overcomes you. You are now resistant to stuns.</span>")
|
||||
force = 30
|
||||
spawn(400)
|
||||
if(src)
|
||||
warning_messages += "famished"
|
||||
if(HIS_GRACE_STARVING to HIS_GRACE_CONSUME_OWNER)
|
||||
if(is_string_in_list("starving", warning_messages))
|
||||
remove_strings_from_list("starving", warning_messages)
|
||||
loc.visible_message("<span class='boldwarning'>[src] is starving!</span>", "<span class='userdanger'>[src] is at its full power! Feed it quickly or you will be consumed!</span>")
|
||||
force = 40
|
||||
spawn(400)
|
||||
if(src)
|
||||
warning_messages += "starving"
|
||||
|
||||
Reference in New Issue
Block a user