obj
ammocase
ammo=5
Click()
for(var/obj/pistol/P in contents)
P.casing = src
break
obj
pistol
casing
Click()
casing:ammo -= 1
Problem description:
This is just a random example describing my problem, it has nothing to do with pistols and ammo, and it can not be circumvented the way I describe it here.
How can I access the vars of a reference, without using :