SightCheck()
for(var/Curiosity/C in view(src))
if(Per.Value >= C.Sight)
var/image/I = image(C.icon, C)
I.icon_state = C.StateText
src << I
Problem description:
I'm trying to make it so that the images only appear to people that pass sightcheck but no matter what I try, the player does not see the image.
Also this is a mob proc, just in case you need to know.
view() proc
Returns:
A list of visible objects within Dist tiles of Center.
range(src) should do the trick for that.
The image() proc can set an icon_state for you, by the way. Simply:
var/image/I = image(C.icon, C, C.icon_state)
Or in your case, replace C.icon_state with C.StateText.