obj/torch/verb/put_out()
set src in view(1)
src.luminosity=0
obj/torch/verb/light_up(var/obj/matches/m, var/mob/p)
set src in view(1)
if(m in p.contents)
if(src.luminosity==0)
src.luminosity=3
obj/matches
icon='matches.dmi'
Problem description: I am trying to make it so that the torch will only be lit up only if the player has matches but it doesn't seem to work. Alternatively if I do change to this:
if(m in view(1))
What did I do wrong?
view() actually has usr as its center by default (check the reference), which is why your other method works properly (and the src setting works the way you have it).