obj
item
verb
get()
set src in oview(1)
src.Move(usr)
drop()
src.Move(usr.loc)
tool
verb
equip()
//misc equipping code goes here
src.verbs -= /obj/item/tool/verb/equip
src.verbs -= /obj/item/verb/drop
src.verbs += /obj/item/tool/verb/unequip
return 1
unequip()
//unequip effect goes here
src.verbs -= /obj/item/tool/verb/unequip
src.verbs += /obj/item/verb/drop
src.verbs += /obj/item/tool/verb/equip
return 1
New()
..()
src.verbs -= /obj/item/tool/verb/unequip
hatchet
verb
chop()
set src in usr.contents
//chopping code
New()
..()
src.verbs -= /obj/item/tool/hatchet/verb/chop
equip()
. = ..()
if(.)
src.verbs += /obj/item/tool/hatchet/verb/chop
return .
unequip()
. = ..()
if(.)
src.verbs -= /obj/item/tool/hatchet/verb/chop
return .
Problem description:
Alright, this is an odd problem, as I've NEVER had this problem before. This has always worked for me, and I don't understand why it isn't working. My hatchet, when I pick it up, has the equip, unequip, get, drop, and chop. When I equip it, it doesn't lose the equip or drop verb. When I unequip it, it doesn't lose the unequip or chop verb. What the hell is going on? None of this stopped working until I overrode the equip(), unequip(), and New() procs. I've done this a hundred thousand times before, why doesn't it work now?
Slash instead of period?
Similar to things going wrong with me- A code segment thats worked before suddenly goes dead...