Files
Aurora.3/code/modules/spell_system/contracts/wizard/apprentice.dm
2020-03-29 18:46:48 +02:00

21 lines
1.0 KiB
Plaintext

/obj/item/contract/apprentice
name = "apprentice wizarding contract"
desc = "a wizarding school contract for those who want to sign their soul for a piece of the magic pie."
color = "#993300"
/obj/item/contract/apprentice/contract_effect(mob/user)
if(user.mind.assigned_role == "Apprentice")
to_chat(user, SPAN_WARNING("You are already a wizarding apprentice!"))
return FALSE
if(wizards.add_antagonist_mind(user.mind, TRUE, "Apprentice", "<b>You are an apprentice! Your job is to learn the wizarding arts!</b>"))
user.mind.assigned_role = "Apprentice"
to_chat(user, SPAN_NOTICE("With the signing of this paper you agree to become \the [contract_master]'s apprentice in the art of wizardry."))
user.faction = "Space Wizard"
wizards.add_antagonist_mind(user.mind, TRUE)
var/obj/item/I = new /obj/item/spellbook/student(get_turf(user))
user.put_in_hands(I)
user.add_spell(new /spell/noclothes)
if(contract_master)
user.add_spell(new /spell/contract/return_master(contract_master), "const_spell_ready")
return TRUE
return FALSE