Page 1 of 1

EntityPrototype.remove_decoratives bool coercion

Posted: Mon Feb 12, 2024 11:03 pm
by BrainGamer_
Document that EntityPrototype.remove_decoratives coerces the boolean values true / false to "true" / "false" respectively.

Additionally since apparently a lot of these coercion cases have been removed in 1.2/2.0/younameit removing this case aswell might be good.
Alternatively change the type to be a union of "automatic" or bool instead of "automatic" or "true" or "false".

Feel free to move this thread to the appropriate forum of course.

Re: EntityPrototype.remove_decoratives bool coercion

Posted: Tue Feb 13, 2024 5:58 pm
by Rseding91
BrainGamer_ wrote: Mon Feb 12, 2024 11:03 pm ... removing this case aswell might be good.
I can confirm it is removed in 2.0 as part of the generic prototype-construction-does-not-auto-coerce.

Re: EntityPrototype.remove_decoratives bool coercion

Posted: Sat May 04, 2024 5:01 pm
by Bilka
Thank you for noting this here, added for the next doc release, including a deprecation notice.