Skip to content

Commit

Permalink
Prevents noncultists/wizards from making construct
Browse files Browse the repository at this point in the history
  • Loading branch information
Robustin committed Apr 23, 2016
1 parent e3ce7da commit 105c1a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/game/gamemodes/wizard/soulstone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
desc = "A wicked machine used by those skilled in magical arts. It is inactive."

/obj/structure/constructshell/attackby(obj/item/O, mob/user, params)
if(!iscultist(user) && !iswizard(user) && !usability)
user << "<span class='danger'>An overwhelming feeling of dread comes over you as you pick up the soulstone. It would be wise to be rid of this quickly.</span>"
user.Dizzy(120)

if(istype(O, /obj/item/device/soulstone))
var/obj/item/device/soulstone/SS = O
SS.transfer_soul("CONSTRUCT",src,user)
Expand Down Expand Up @@ -270,4 +274,4 @@
T.unEquip(W)
init_shade(C, T, U)
qdel(T)
return 1
return 1

0 comments on commit 105c1a7

Please sign in to comment.