Changes teleportation scroll and spellbook to be only usable by wizards

This commit is contained in:
Yoshax
2015-06-04 20:21:31 +01:00
parent 93f9bf7b33
commit c960fad48e
3 changed files with 9 additions and 1 deletions

View File

@@ -11,6 +11,10 @@
origin_tech = list(TECH_BLUESPACE = 4) origin_tech = list(TECH_BLUESPACE = 4)
/obj/item/weapon/teleportation_scroll/attack_self(mob/user as mob) /obj/item/weapon/teleportation_scroll/attack_self(mob/user as mob)
if((user.mind && !wizards.is_antagonist(user.mind)))
usr << "<span class='warning'>You stare at the scroll but cannot make sense of the markings!</span>"
return
user.set_machine(src) user.set_machine(src)
var/dat = "<B>Teleportation Scroll:</B><BR>" var/dat = "<B>Teleportation Scroll:</B><BR>"
dat += "Number of uses: [src.uses]<BR>" dat += "Number of uses: [src.uses]<BR>"

View File

@@ -14,6 +14,10 @@
/obj/item/weapon/spellbook/attack_self(mob/user = usr) /obj/item/weapon/spellbook/attack_self(mob/user = usr)
if(!user) if(!user)
return return
if((user.mind && !wizards.is_antagonist(user.mind)))
usr << "<span class='warning'>You stare at the book but cannot make sense of the markings!</span>"
return
user.set_machine(src) user.set_machine(src)
var/dat var/dat
if(temp) if(temp)

View File

@@ -2,4 +2,4 @@ author: Yoshax
delete-after: True delete-after: True
changes: changes:
- tweak: "Makes the special wizard projectile staffs, Animate, Change, Focus and any future ones only usable by wizards.." - tweak: "Makes the special wizard projectile staffs, Animate, Change, Focus and any future ones only usable by wizards. Also makes it so only wizards can use spellbooks and teleportation scrolls."