Changes spellbook description

Picks types from list
This commit is contained in:
AnturK
2015-11-17 15:17:46 +01:00
parent 05ff5552b2
commit b1bf6acab0
2 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -91,6 +91,9 @@
damage = 0
damage_type = OXY
nodamage = 1
var/list/door_types = list(/obj/structure/mineral_door/wood,/obj/structure/mineral_door/iron,/obj/structure/mineral_door/silver,\
/obj/structure/mineral_door/gold,/obj/structure/mineral_door/uranium,/obj/structure/mineral_door/sandstone,/obj/structure/mineral_door/transparent/plasma,\
/obj/structure/mineral_door/transparent/diamond)
/obj/item/projectile/magic/door/on_hit(atom/target)
. = ..()
@@ -101,7 +104,7 @@
CreateDoor(T)
/obj/item/projectile/magic/door/proc/CreateDoor(turf/T)
var/door_type = pick(typesof(/obj/structure/mineral_door) - /obj/structure/mineral_door)
var/door_type = pick(door_types)
new door_type(T)
T.ChangeTurf(/turf/simulated/floor/plating)