Files
Bubberstation/code/modules/events/wizard/aid.dm
SkyratBot 5a33abb773 [MIRROR] Event menu rewrite [MDB IGNORE] (#15396)
* Event menu rewrite

* Update topic.dm

* Update _event.dm

* Update event_chaos_system.dm

Co-authored-by: Profakos <profakos@gmail.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-08-08 01:15:12 +01:00

52 lines
1.8 KiB
Plaintext

// Various events that directly aid the wizard.
// This is the "lets entice the wizard to use summon events!" file.
/datum/round_event_control/wizard/robelesscasting //EI NUDTH!
name = "Robeless Casting"
weight = 2
typepath = /datum/round_event/wizard/robelesscasting
max_occurrences = 1
earliest_start = 0 MINUTES
description = "Wizard no longer needs robes to cast spells."
/datum/round_event/wizard/robelesscasting/start()
// Hey, if a corgi has magic missle, he should get the same benefit as anyone
for(var/mob/living/caster as anything in GLOB.mob_living_list)
if(!length(caster.actions))
continue
var/spell_improved = FALSE
for(var/datum/action/cooldown/spell/spell in caster.actions)
if(spell.spell_requirements & SPELL_REQUIRES_WIZARD_GARB)
spell.spell_requirements &= ~SPELL_REQUIRES_WIZARD_GARB
spell_improved = TRUE
if(spell_improved)
to_chat(caster, span_notice("You suddenly feel like you never needed those garish robes in the first place..."))
//--//
/datum/round_event_control/wizard/improvedcasting //blink x5 disintergrate x5 here I come!
name = "Improved Casting"
weight = 3
typepath = /datum/round_event/wizard/improvedcasting
max_occurrences = 4 //because that'd be max level spells
earliest_start = 0 MINUTES
description = "Levels up the wizard's spells."
/datum/round_event/wizard/improvedcasting/start()
for(var/mob/living/caster as anything in GLOB.mob_living_list)
if(!length(caster.actions))
continue
var/upgraded_a_spell = FALSE
for(var/datum/action/cooldown/spell/spell in caster.actions)
// If improved casting has already boosted this spell further beyond, go no further
if(spell.spell_level >= spell.spell_max_level + 1)
continue
upgraded_a_spell = spell.level_spell(TRUE)
if(upgraded_a_spell)
to_chat(caster, span_notice("You suddenly feel more competent with your casting!"))