Round End Summary Fixes (#9096)

Added an admin verb that ends the round smoothly, displaying the end round card.
    Wizard learned spells are now properly displayed at round.
    Antags added to gamemodes they don't belong in, now properly update the gamemode's antag template, allowing their things to be displayed at round end.
    Fixed a typo in the apprentice pebble spawn-in calling it an 'artificer pebble' in deadchat.
This commit is contained in:
Geeves
2020-06-20 10:34:07 +02:00
committed by GitHub
parent a074b7e224
commit 2ec9ae5701
8 changed files with 49 additions and 27 deletions
@@ -13,7 +13,7 @@
SSghostroles.add_spawn_atom("apprentice", src)
var/area/A = get_area(src)
if(A)
say_dead_direct("An artificer pebble has been created in [A.name]! Spawn at it by using the ghost spawner menu in the ghost tab.")
say_dead_direct("A wizard apprentice pebble has been created in [A.name]! Spawn at it by using the ghost spawner menu in the ghost tab.")
/obj/item/apprentice_pebble/Destroy()
if(contract)
+5 -6
View File
@@ -44,7 +44,9 @@
if(spell_master.type == master_type)
LAZYADD(spell_list, spell_to_add)
spell_master.add_spell(spell_to_add)
return 1
if(mind)
LAZYDISTINCTADD(mind.learned_spells, spell_to_add)
return TRUE
var/obj/screen/movable/spell_master/new_spell_master = new master_type //we're here because either we didn't find our type, or we have no spell masters to attach to
if(client)
@@ -56,11 +58,8 @@
spell_masters.Add(new_spell_master)
LAZYADD(spell_list, spell_to_add)
if(mind)
if(!mind.learned_spells)
mind.learned_spells = list()
mind.learned_spells += spell_to_add
return 1
LAZYDISTINCTADD(mind.learned_spells, spell_to_add)
return TRUE
/mob/proc/remove_spell(var/spell/spell_to_remove)
if(!spell_to_remove || !istype(spell_to_remove))