added time penalty counter also to time penalty element in editor
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 1 Dec 2024 13:15:26 +0000 (14:15 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 1 Dec 2024 13:15:29 +0000 (14:15 +0100)
So far, this counter was only displayed for the "voodoo doll" game
element in the game element settings of the level editor.

src/editor.c

index 1e02171453386a647e7b92d632b8da7671138acd..1f9d89cbc0607d56912afc1ca460c130ff557b16 100644 (file)
@@ -12491,6 +12491,7 @@ static void DrawPropertiesInfo(void)
 #define TEXT_GAME_OF_LIFE_4            "Max neighbours to create"
 #define TEXT_TIME_BONUS                        "Extra time to solve level"
 #define TEXT_TIME_PENALTY              "Time penalty if destroyed"
+#define TEXT_TIME_PENALTY_2            "Time penalty for voodoo doll"
 #define TEXT_PERMEABILITY_RATE         "slime permeability rate"
 #define TEXT_PERMEABILITY_BITS         "slime permeability bits"
 #define TEXT_RANDOM_SEED               "slime random number seed"
@@ -12621,6 +12622,8 @@ static struct
                                -100, 100                                                       },
   { EL_BDX_VOODOO_DOLL,                &level.bd_voodoo_penalty_time,          TEXT_TIME_PENALTY,
                                0, 100                                                          },
+  { EL_BDX_TIME_PENALTY,       &level.bd_voodoo_penalty_time,          TEXT_TIME_PENALTY_2,
+                               0, 100                                                          },
   { EL_BDX_SLIME,              &level.bd_slime_permeability_rate,      TEXT_PERMEABILITY_RATE,
                                0, 100                                                          },
   { EL_BDX_SLIME,              &level.bd_slime_permeability_bits_c64,  TEXT_PERMEABILITY_BITS,