mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
[MIRROR] Completely removes proc_holders from existence. Refactors all wizard, xeno, spider, and genetics powers to be actions. Also refactors and sorts ton of accompanying code. [MDB IGNORE] (#14666)
* Completely removes `proc_holders` from existence. Refactors all wizard, xeno, spider, and genetics powers to be actions. Also refactors and sorts ton of accompanying code. * our changes * yes * 0 * Update blackmesa.dmm Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
MrMelbert
Gandalf
parent
f507824ee7
commit
c68fea7cba
@@ -0,0 +1,14 @@
|
||||
// Once upon a time, a Game Master decided to upgrade the wizard's spellbook to tgui.
|
||||
// In doing so, he introduced an infinite loop that crashed many servers and made many wizards sad.
|
||||
// May this never happen again.
|
||||
|
||||
/// Test loadouts for crashes, runtimes, stack traces and infinite loops. No ASSERTs necessary.
|
||||
/datum/unit_test/wizard_loadout
|
||||
|
||||
/datum/unit_test/wizard_loadout/Run()
|
||||
for(var/loadout in ALL_WIZARD_LOADOUTS)
|
||||
var/obj/item/spellbook/wizard_book = allocate(/obj/item/spellbook)
|
||||
var/mob/living/carbon/human/wizard = allocate(/mob/living/carbon/human)
|
||||
wizard.mind_initialize()
|
||||
wizard.put_in_active_hand(wizard_book, forced = TRUE)
|
||||
wizard_book.wizard_loadout(wizard, loadout)
|
||||
Reference in New Issue
Block a user