Closed dev7355608 closed 2 weeks ago
Units should probably be initialised to some default, but null
is a valid value for these NumberField
s. We don't prepare every single NumberField
in the schema to 0
so it's unclear why doing so for these particular fields is necessary.
The units need to be initialized to for prepareMovement
. The movement units are null
, some of the movement reductions have no effect. No null
ranges would be nice to have so that downstream code doesn't have to deal with that. In the context of detection modes a range of null
is infinity: so there are chances that things go wrong with null
ranges and a missing ?? 0
if the detection modes are prepared from the actors senses.
The units need to be initialized to for
prepareMovement
. The movement units arenull
, some of the movement reductions have no effect. Nonull
ranges would be nice to have so that downstream code doesn't have to deal with that. In the context of detection modes a range ofnull
is infinity: so there are chances that things go wrong withnull
ranges and a missing?? 0
if the detection modes are prepared from the actors senses.
Yeah, definitely for units, but that makes sense for movement and senses as well
I noticed in certain cases we currently end up with prepared
null
range/units instead of0
/"ft"
.