Makes special wizard projectile staffs only usable by wizards.

This commit is contained in:
Yoshax
2015-06-04 19:42:06 +01:00
parent ef36c256da
commit 1711d01e7a
2 changed files with 12 additions and 0 deletions

View File

@@ -117,6 +117,13 @@
self_recharge = 1 self_recharge = 1
charge_meter = 0 charge_meter = 0
/obj/item/weapon/gun/energy/staff/special_check(var/mob/user)
if((user.mind && !wizards.is_antagonist(user.mind)))
usr << "<span class='warning'>You focus your mind on \the [src], but nothing happens!</span>"
return 0
return ..()
/obj/item/weapon/gun/energy/staff/handle_click_empty(mob/user = null) /obj/item/weapon/gun/energy/staff/handle_click_empty(mob/user = null)
if (user) if (user)
user.visible_message("*fizzle*", "<span class='danger'>*fizzle*</span>") user.visible_message("*fizzle*", "<span class='danger'>*fizzle*</span>")

View File

@@ -0,0 +1,5 @@
author: Yoshax
delete-after: True
changes:
- tweak: "Makes the special wizard projectile staffs, Animate, Change, Focus and any future ones only usable by wizards.."