mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
- Moves spells from the mob to the mind.
- Construct spells are an exception. - Spells are transferred whenever a mind is transferred: cloning, pod cloning, borging, staff of changing. - Spells are not transferred when you create a new mind for a new mob: soul stones, golems, respawns. - To my surprise, this did not fix the issue where a mind-swapped wizard loses their spells when their original body is destroyed. I do not know why this happens. - Non-human mobs can't use spells by default. Varedit spell.human_req to do that.
This commit is contained in:
@@ -472,8 +472,9 @@ var/list/admin_verbs_hideable = list(
|
||||
set name = "Give Spell"
|
||||
set desc = "Gives a spell to a mob."
|
||||
var/obj/effect/proc_holder/spell/S = input("Choose the spell to give to that guy", "ABRAKADABRA") as null|anything in spells
|
||||
if(!S) return
|
||||
T.spell_list += new S
|
||||
if(!S || !T.mind)
|
||||
return
|
||||
T.mind.spell_list += new S
|
||||
feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
log_admin("[key_name(usr)] gave [key_name(T)] the spell [S].")
|
||||
message_admins("\blue [key_name_admin(usr)] gave [key_name(T)] the spell [S].", 1)
|
||||
|
||||
Reference in New Issue
Block a user