GADGET_ID_BD_ACID_EATS_ELEMENT,
GADGET_ID_BD_ACID_TURNS_TO_ELEMENT,
GADGET_ID_BD_BITER_EATS_ELEMENT,
+ GADGET_ID_BD_BLADDER_CONVERTS_BY_ELEMENT,
GADGET_ID_START_ELEMENT,
GADGET_ID_ARTWORK_ELEMENT,
GADGET_ID_EXPLOSION_ELEMENT,
ED_DRAWING_ID_BD_ACID_EATS_ELEMENT,
ED_DRAWING_ID_BD_ACID_TURNS_TO_ELEMENT,
ED_DRAWING_ID_BD_BITER_EATS_ELEMENT,
+ ED_DRAWING_ID_BD_BLADDER_CONVERTS_BY_ELEMENT,
ED_DRAWING_ID_START_ELEMENT,
ED_DRAWING_ID_ARTWORK_ELEMENT,
ED_DRAWING_ID_EXPLOSION_ELEMENT,
&level.bd_biter_eats_element, 1, 1,
"Can eat:", NULL, NULL, NULL, "Eats this element when moving"
},
+ {
+ ED_DRAWING_ID_BD_BLADDER_CONVERTS_BY_ELEMENT,
+ ED_AREA_1X1_SETTINGS_XPOS(0), ED_AREA_1X1_SETTINGS_YPOS(1),
+ ED_AREA_1X1_SETTINGS_XOFF, ED_AREA_1X1_SETTINGS_YOFF,
+ GADGET_ID_BD_BLADDER_CONVERTS_BY_ELEMENT, GADGET_ID_NONE,
+ &level.bd_bladder_converts_by_element, 1, 1,
+ "Turns to clock by touching:", NULL, NULL, NULL, "Turns to clock by touching element"
+ },
// ---------- level start element -------------------------------------------
{
MapDrawingArea(ED_DRAWING_ID_BD_BITER_EATS_ELEMENT);
}
+ else if (properties_element == EL_BD_BLADDER)
+ {
+ MapDrawingArea(ED_DRAWING_ID_BD_BLADDER_CONVERTS_BY_ELEMENT);
+ }
else if (properties_element == EL_YAMYAM ||
properties_element == EL_YAMYAM_LEFT ||
properties_element == EL_YAMYAM_RIGHT ||
&li.bd_biter_eats_element, EL_BD_DIAMOND
},
+ {
+ EL_BD_BLADDER, -1,
+ TYPE_ELEMENT, CONF_VALUE_16_BIT(1),
+ &li.bd_bladder_converts_by_element, EL_BD_VOODOO_DOLL
+ },
+
// (the following values are related to various game elements)
{
cave->biter_delay_frame = level->bd_biter_move_delay;
cave->biter_eat = map_element_RND_to_BD(level->bd_biter_eats_element);
+ cave->bladder_converts_by = map_element_RND_to_BD(level->bd_bladder_converts_by_element);
+
// level name
strncpy(cave->name, level->name, sizeof(GdString));
cave->name[sizeof(GdString) - 1] = '\0';
level->bd_biter_move_delay = cave->biter_delay_frame;
level->bd_biter_eats_element = map_element_BD_to_RND(cave->biter_eat);
+ level->bd_bladder_converts_by_element = map_element_BD_to_RND(cave->bladder_converts_by);
+
// level name
char *cave_name = getStringPrint("%s / %d", cave->name, bd_level_nr + 1);