Anvil
density=1
icon_state="anvil"
Click()
var/making = input("What object do you wish to create?") in list ("Copper Wire","Digger Control")
switch(making)
if("Copper Wire")
var/S = locate(/obj/Ore/Copper_Ore) in usr.contents
if(S)
var/obj/Product/Copper_Wire/C = new
C.Move(usr)
del(C)
if("Digger Control")
var/O = locate(/obj/Sheet/Iron) in usr.contents
var/L = locate(/obj/Sheet/Iron) in usr.contents
var/T = locate(/obj/Product/Copper_Wire) in usr.contents
if(O&&T&&L)
var/mob/Static/Digger_Control/R = new
R.Move(usr.loc)
del(O)
del(L)
del(T)
Problem description:
I've had this weird problem for a while now, and I can't see what the problem is by myself. :/ Basically, whenever I pick "Copper Wire" from the list, it does nothing else. I don't lose the copper ore, and I don't get the wire.