Page 1 of 1

ep_can_grow and expandable walls

Posted: Sun Dec 17, 2006 4:49 pm
by Zomis
InitElementPropertiesStatic, init.h:

Code: Select all

  static int ep_can_grow[] =
  {
    EL_BD_AMOEBA,
    EL_AMOEBA_DROP,
    EL_AMOEBA_WET,
    EL_AMOEBA_DRY,
    EL_AMOEBA_FULL,
    EL_GAME_OF_LIFE,
    EL_BIOMAZE,
    EL_EMC_DRIPPER,

    -1
  };
Why isn't the expandable walls included there? I guess it's because ep_can_grow only includes those which can be digged into something diggable (after a quick look at the source), did I guess right?
But Amoeba drops () can't dig into something diggable...? They can just land on something and then turn into amoeba_wet, right?

Posted: Fri Dec 29, 2006 4:42 am
by GreaseMonkey
Yeah, I'm pretty sure that the ep_can_grow only applies to those that can grow into something diggable. Have a look in the editor, and look at the Element Settings of each of them. Under the Config tab, each of them should have a checkbox that says "CAN GROW INTO ANYTHING DIGGABLE". If you uncheck it on any of the elements, then it will be unchecked on each of the elements in that list.

Amoeba drops (I think) cannot grow into anything diggable. I don't believe that the source does anything with the EL_AMOEBA_DROP or EL_AMOEBA_DROPPING when it comes to ep_can_grow; I believe that it's just there because it's an amoeba.

Posted: Mon Jan 08, 2007 6:52 pm
by Holger
Yep, GreaseMonkey is right here.

> But Amoeba drops () can't dig into something diggable...? They can just
> land on something and then turn into amoeba_wet, right?

Yep, right. It's just included here to have the level editor switch "[ ] can grow into anything diggable" displayed for all amoeba style elements, even though the amoeba drop itself cannot really grow somewhere (but turns into amoeba after landing).