GADGET_ID_BD_BUTTERFLY_2_EXPLODES_TO,
GADGET_ID_BD_STONEFLY_EXPLODES_TO,
GADGET_ID_BD_DRAGONFLY_EXPLODES_TO,
+ GADGET_ID_BD_DIAMOND_BIRTH_TURNS_TO,
+ GADGET_ID_BD_BOMB_EXPLOSION_TURNS_TO,
+ GADGET_ID_BD_NITRO_EXPLOSION_TURNS_TO,
+ GADGET_ID_BD_EXPLOSION_TURNS_TO,
GADGET_ID_START_ELEMENT,
GADGET_ID_ARTWORK_ELEMENT,
GADGET_ID_EXPLOSION_ELEMENT,
ED_DRAWING_ID_BD_BUTTERFLY_2_EXPLODES_TO,
ED_DRAWING_ID_BD_STONEFLY_EXPLODES_TO,
ED_DRAWING_ID_BD_DRAGONFLY_EXPLODES_TO,
+ ED_DRAWING_ID_BD_DIAMOND_BIRTH_TURNS_TO,
+ ED_DRAWING_ID_BD_BOMB_EXPLOSION_TURNS_TO,
+ ED_DRAWING_ID_BD_NITRO_EXPLOSION_TURNS_TO,
+ ED_DRAWING_ID_BD_EXPLOSION_TURNS_TO,
ED_DRAWING_ID_START_ELEMENT,
ED_DRAWING_ID_ARTWORK_ELEMENT,
ED_DRAWING_ID_EXPLOSION_ELEMENT,
&level.bd_dragonfly_explodes_to, 1, 1,
"Explodes to:", NULL, NULL, NULL, "Changes to this when exploding"
},
+ {
+ ED_DRAWING_ID_BD_DIAMOND_BIRTH_TURNS_TO,
+ 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_DIAMOND_BIRTH_TURNS_TO, GADGET_ID_NONE,
+ &level.bd_diamond_birth_turns_to, 1, 1,
+ "Explosion ends in:", NULL, NULL, NULL, "Changes to this after explosion"
+ },
+ {
+ ED_DRAWING_ID_BD_BOMB_EXPLOSION_TURNS_TO,
+ ED_AREA_1X1_SETTINGS_XPOS(0), ED_AREA_1X1_SETTINGS_YPOS(0),
+ ED_AREA_1X1_SETTINGS_XOFF, ED_AREA_1X1_SETTINGS_YOFF,
+ GADGET_ID_BD_BOMB_EXPLOSION_TURNS_TO, GADGET_ID_NONE,
+ &level.bd_bomb_explosion_turns_to, 1, 1,
+ "Explosion ends in:", NULL, NULL, NULL, "Changes to this after explosion"
+ },
+ {
+ ED_DRAWING_ID_BD_NITRO_EXPLOSION_TURNS_TO,
+ ED_AREA_1X1_SETTINGS_XPOS(0), ED_AREA_1X1_SETTINGS_YPOS(0),
+ ED_AREA_1X1_SETTINGS_XOFF, ED_AREA_1X1_SETTINGS_YOFF,
+ GADGET_ID_BD_NITRO_EXPLOSION_TURNS_TO, GADGET_ID_NONE,
+ &level.bd_nitro_explosion_turns_to, 1, 1,
+ "Explosion ends in:", NULL, NULL, NULL, "Changes to this after explosion"
+ },
+ {
+ ED_DRAWING_ID_BD_EXPLOSION_TURNS_TO,
+ 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_EXPLOSION_TURNS_TO, GADGET_ID_NONE,
+ &level.bd_explosion_turns_to, 1, 1,
+ "Explosion ends in:", NULL, NULL, NULL, "Changes to this after explosion"
+ },
// ---------- level start element -------------------------------------------
element == EL_BD_SAND ||
element == EL_BD_ROCK ||
element == EL_BD_MEGA_ROCK ||
+ element == EL_BD_BOMB ||
+ element == EL_BD_NITRO_PACK ||
element == EL_BD_SWEET ||
element == EL_BD_VOODOO_DOLL ||
element == EL_BD_WATER ||
if (level.game_engine_type == GAME_ENGINE_TYPE_BD)
{
if (IS_BD_FIREFLY(properties_element))
+ {
MapDrawingArea(ED_DRAWING_ID_BD_FIREFLY_EXPLODES_TO);
+ MapDrawingArea(ED_DRAWING_ID_BD_EXPLOSION_TURNS_TO);
+ }
else if (IS_BD_FIREFLY_2(properties_element))
+ {
MapDrawingArea(ED_DRAWING_ID_BD_FIREFLY_2_EXPLODES_TO);
+ MapDrawingArea(ED_DRAWING_ID_BD_EXPLOSION_TURNS_TO);
+ }
else if (IS_BD_BUTTERFLY(properties_element))
+ {
MapDrawingArea(ED_DRAWING_ID_BD_BUTTERFLY_EXPLODES_TO);
+ MapDrawingArea(ED_DRAWING_ID_BD_DIAMOND_BIRTH_TURNS_TO);
+ }
else if (IS_BD_BUTTERFLY_2(properties_element))
+ {
MapDrawingArea(ED_DRAWING_ID_BD_BUTTERFLY_2_EXPLODES_TO);
+ MapDrawingArea(ED_DRAWING_ID_BD_DIAMOND_BIRTH_TURNS_TO);
+ }
else if (IS_BD_STONEFLY(properties_element))
+ {
MapDrawingArea(ED_DRAWING_ID_BD_STONEFLY_EXPLODES_TO);
+ }
else if (IS_BD_DRAGONFLY(properties_element))
+ {
MapDrawingArea(ED_DRAWING_ID_BD_DRAGONFLY_EXPLODES_TO);
+ MapDrawingArea(ED_DRAWING_ID_BD_EXPLOSION_TURNS_TO);
+ }
+ else if (properties_element == EL_BD_BOMB)
+ {
+ MapDrawingArea(ED_DRAWING_ID_BD_BOMB_EXPLOSION_TURNS_TO);
+ }
+ else if (properties_element == EL_BD_NITRO_PACK)
+ {
+ MapDrawingArea(ED_DRAWING_ID_BD_NITRO_EXPLOSION_TURNS_TO);
+ }
}
if (properties_element == EL_BD_MEGA_ROCK ||
&li.bd_dragonfly_explodes_to, EL_BD_EXPLODING_1
},
+ {
+ EL_BD_DIAMOND_GROWING_5, -1,
+ TYPE_ELEMENT, CONF_VALUE_16_BIT(1),
+ &li.bd_diamond_birth_turns_to, EL_BD_DIAMOND
+ },
+
+ {
+ EL_BD_BOMB_EXPLODING_4, -1,
+ TYPE_ELEMENT, CONF_VALUE_16_BIT(1),
+ &li.bd_bomb_explosion_turns_to, EL_BD_WALL
+ },
+
+ {
+ EL_BD_NITRO_PACK_EXPLODING_4, -1,
+ TYPE_ELEMENT, CONF_VALUE_16_BIT(1),
+ &li.bd_nitro_explosion_turns_to, EL_EMPTY
+ },
+
+ {
+ EL_BD_EXPLODING_5, -1,
+ TYPE_ELEMENT, CONF_VALUE_16_BIT(1),
+ &li.bd_explosion_turns_to, EL_EMPTY
+ },
+
{
EL_BD_MAGIC_WALL, -1,
TYPE_BOOLEAN, CONF_VALUE_8_BIT(1),
cave->stonefly_explode_to = LEVEL_TO_CAVE(level->bd_stonefly_explodes_to);
cave->dragonfly_explode_to = LEVEL_TO_CAVE(level->bd_dragonfly_explodes_to);
+ cave->diamond_birth_effect = LEVEL_TO_CAVE(level->bd_diamond_birth_turns_to);
+ cave->bomb_explosion_effect = LEVEL_TO_CAVE(level->bd_bomb_explosion_turns_to);
+ cave->nitro_explosion_effect = LEVEL_TO_CAVE(level->bd_nitro_explosion_turns_to);
+ cave->explosion_effect = LEVEL_TO_CAVE(level->bd_explosion_turns_to);
+
// level name
strncpy(cave->name, level->name, sizeof(GdString));
cave->name[sizeof(GdString) - 1] = '\0';
level->bd_stonefly_explodes_to = CAVE_TO_LEVEL(cave->stonefly_explode_to);
level->bd_dragonfly_explodes_to = CAVE_TO_LEVEL(cave->dragonfly_explode_to);
+ level->bd_diamond_birth_turns_to = CAVE_TO_LEVEL(cave->diamond_birth_effect);
+ level->bd_bomb_explosion_turns_to = CAVE_TO_LEVEL(cave->bomb_explosion_effect);
+ level->bd_nitro_explosion_turns_to = CAVE_TO_LEVEL(cave->nitro_explosion_effect);
+ level->bd_explosion_turns_to = CAVE_TO_LEVEL(cave->explosion_effect);
+
// level name
char *cave_name = getStringPrint("%s / %d", cave->name, bd_level_nr + 1);