if (IS_CUSTOM_ELEMENT(element))
{
+ element_info[element].access_direction = MV_ALL_DIRECTIONS;
+
element_info[element].collect_score = 10; /* special default */
element_info[element].collect_count = 1; /* special default */
element_info[element].slippery_type = SLIPPERY_ANY_RANDOM;
+ element_info[element].explosion_delay = 18;
+ element_info[element].ignition_delay = 8;
+
for (x = 0; x < 3; x++)
for (y = 0; y < 3; y++)
element_info[element].content[x][y] = EL_EMPTY_SPACE;
/* ... bits 16 - 31 of "move_pattern" (not nice, but downward compatible) */
ei->move_pattern |= (getFile16BitBE(file) << 16);
+ ei->access_direction = getFile8Bit(file);
+
+ ei->explosion_delay = getFile8Bit(file);
+ ei->ignition_delay = getFile8Bit(file);
+
/* some free bytes for future custom property values and padding */
- ReadUnusedBytesFromFile(file, 5);
+ ReadUnusedBytesFromFile(file, 2);
/* read change property values */
/* ... bits 16 - 31 of "move_pattern" (not nice, but downward compatible) */
putFile16BitBE(file, (ei->move_pattern >> 16) & 0xffff);
+ putFile8Bit(file, ei->access_direction);
+
+ putFile8Bit(file, ei->explosion_delay);
+ putFile8Bit(file, ei->ignition_delay);
+
/* some free bytes for future custom property values and padding */
- WriteUnusedBytesToFile(file, 5);
+ WriteUnusedBytesToFile(file, 2);
/* write change property values */