Files
Aurora.3/code/modules/spells/spellbook/student.dm
Alberyk fe396373c6 Changes wizard checks and fix wizard apprentices (#2307)
-added a check to see if the mob is a wizard or apprentice
-replaced the faction check with the new check
-fixed wizard apprentices, also giving them a book with three spells uses
-you can now cast cure major wounds on yourself
-reduces the brain damage caused by swap
Fixes #2047
2017-05-21 03:44:16 +03:00

28 lines
1.0 KiB
Plaintext

/obj/item/weapon/spellbook/student
spellbook_type = /datum/spellbook/student
/obj/item/weapon/spellbook/student/attack_self(mob/living/user as mob)
if(user.is_wizard(TRUE))
user <<"<span class='warning'>This books is written for students, not for a true wizard like yourself!</span>"
return
..()
/datum/spellbook/student
name = "\improper student's spellbook"
feedback = "ST"
desc = "This spell book has a sticker on it that says, 'certified for children 5 and older'."
book_desc = "This spellbook is dedicated to teaching neophytes in the ways of magic."
title = "Book of Spells and Education"
title_desc = "Buy spells using your available spell slots. Artefacts may also be bought however their cost is permanent."
book_flags = 0
max_uses = 3
spells = list(/spell/aoe_turf/knock = 1,
/spell/targeted/ethereal_jaunt = 1,
/spell/targeted/projectile/magic_missile = 1,
/obj/item/weapon/gun/energy/staff/focus = 1,
/obj/item/weapon/storage/belt/wands/full = 2,
/obj/item/weapon/contract/wizard/xray = 1
)