Page 1 of 1

overriding existing prototypes

Posted: Tue May 15, 2018 2:15 pm
by sthalik
Hey,

I can't understand modifying existing entities and their parameters. I'd like to change the collision box for some biters. Does it work (and is supported API usage) to find the entity in data.raw and replace the values? Otherwise, would that work?

- make an object with given value set to what I want
- set its prototype to the object I want to override
- stuff it in data:extend(...)

Would it take precedence over the old prototype? Of course modifying the existing prototype is simpler and shorter, thus I'd like to try that first.

Re: overriding existing prototypes

Posted: Tue May 15, 2018 2:51 pm
by eradicator
Duplicate of your own thread:
viewtopic.php?f=33&t=60393