Merge pull request #3802 from Tastyfish/chronx100

Donator Fluff Items: Chaplain Edition
This commit is contained in:
Fox McCloud
2016-03-10 03:54:19 -05:00
12 changed files with 87 additions and 25 deletions
+11 -7
View File
@@ -27,6 +27,8 @@
throwforce = 10
w_class = 1
var/transformed = 0
var/transform_into = /obj/item/weapon/nullrod/sword
var/transform_via = list(/obj/item/clothing/suit/armor/riot/knight/templar)
suicide_act(mob/user)
viewers(user) << "<span class='suicide'>[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide.</span>"
@@ -61,13 +63,15 @@
/obj/item/weapon/nullrod/afterattack(var/obj/item/I as obj, mob/user as mob, proximity)
if(!proximity)
return
if(istype(I, /obj/item/clothing/suit/armor/riot/knight/templar)) //Only the Chaplain's holy armor is capable fo performing this feat.
if(!transformed) // can't turn a sword into a sword.
user << "<span class='notice'>You sheath the [src] into the [I]'s scabbard, transforming it into a holy sword.</span>"
user.unEquip(src)
qdel(src)
var/obj/item/weapon/nullrod/sword/S = new /obj/item/weapon/nullrod/sword
user.put_in_hands(S)
for(var/T in transform_via)
if(istype(I, T)) //Only the Chaplain's holy armor is capable fo performing this feat.
if(!transformed) // can't turn a sword into a sword.
var/obj/item/S = new transform_into()
user << "<span class='notice'>You sheath the [src] into the [I]'s scabbard, transforming it into \a [S].</span>"
user.unEquip(src)
qdel(src)
user.put_in_hands(S)
break
/obj/item/weapon/nullrod/sword
name = "holy sword"