SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

[Feature Request] VAR_PROTECTED_SET

Open Kapu1178 opened this issue 3 years ago • 1 comments

The ability to protect a var from setting only would be incredibly useful. For example, health values should never be directly written to by procs that aren't explicitly made for that like heal_damage(), but being able to read from health values outside of /mob is incredibly important. Our only options currently is just not protecting it and hoping nothing slips by maintainers, or using VAR_PROTECTED and having a getter proc, which is needless overhead.

Kapu1178 avatar Mar 23 '22 03:03 Kapu1178