From 0e50adcc1eb4b9580bc124da38999b74083eb087 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Thu, 29 May 2025 19:14:10 +0100 Subject: [PATCH] Restore monsters.h to its previous order This causes the difficulties to get out of sequence, but we agreed that this is a less important rule than keeping monster IDs stable. Breaks save and bones files, because it changes monster IDs. --- include/monsters.h | 22 ++++++++++++---------- include/patchlevel.h | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/include/monsters.h b/include/monsters.h index 5b5e2423b..d13cc9178 100644 --- a/include/monsters.h +++ b/include/monsters.h @@ -47,8 +47,10 @@ * Rule #1: monsters of a given class are contiguous in the * mons[] array. * - * Rule #2: monsters of a given class are presented in ascending - * order of strength. + * Rule #2: monsters of a given class are generally kept in + * the same order as in previous versions of NetHack + * (they used to be presented in ascending order of + * strength, but this rule no longer applies). * * Rule #3: monster frequency is included in the geno mask; * the frequency can be from 0 to 7. 0's will also @@ -98,6 +100,14 @@ SIZ(1, 5, MS_BUZZ, MZ_TINY), MR_POISON, MR_POISON, M1_ANIMAL | M1_FLY | M1_NOHANDS | M1_POIS, M2_HOSTILE | M2_FEMALE, 0, 6, CLR_YELLOW, KILLER_BEE), + MON(NAM("soldier ant"), S_ANT, + LVL(3, 18, 3, 0, 0), (G_GENO | G_SGROUP | 2), + A(ATTK(AT_BITE, AD_PHYS, 2, 4), ATTK(AT_STNG, AD_DRST, 3, 4), + NO_ATTK, NO_ATTK, NO_ATTK, NO_ATTK), + SIZ(20, 5, MS_SILENT, MZ_TINY), MR_POISON, MR_POISON, + M1_ANIMAL | M1_NOHANDS | M1_OVIPAROUS | M1_POIS | M1_CARNIVORE, + M2_HOSTILE, 0, + 7, CLR_BLUE, SOLDIER_ANT), MON(NAM("fire ant"), S_ANT, LVL(3, 18, 3, 10, 0), (G_GENO | G_SGROUP | 1), A(ATTK(AT_BITE, AD_PHYS, 2, 4), ATTK(AT_BITE, AD_FIRE, 2, 4), @@ -113,14 +123,6 @@ SIZ(200, 50, MS_SILENT, MZ_LARGE), MR_POISON, MR_POISON, M1_ANIMAL | M1_NOHANDS | M1_POIS | M1_CARNIVORE, M2_HOSTILE, 0, 6, CLR_BLACK, GIANT_BEETLE), - MON(NAM("soldier ant"), S_ANT, - LVL(3, 18, 3, 0, 0), (G_GENO | G_SGROUP | 2), - A(ATTK(AT_BITE, AD_PHYS, 2, 4), ATTK(AT_STNG, AD_DRST, 3, 4), - NO_ATTK, NO_ATTK, NO_ATTK, NO_ATTK), - SIZ(20, 5, MS_SILENT, MZ_TINY), MR_POISON, MR_POISON, - M1_ANIMAL | M1_NOHANDS | M1_OVIPAROUS | M1_POIS | M1_CARNIVORE, - M2_HOSTILE, 0, - 7, CLR_BLUE, SOLDIER_ANT), MON(NAM("queen bee"), S_ANT, LVL(9, 24, -4, 0, 0), (G_GENO | G_NOGEN), A(ATTK(AT_STNG, AD_DRST, 1, 8), diff --git a/include/patchlevel.h b/include/patchlevel.h index 37b02ac79..339095f25 100644 --- a/include/patchlevel.h +++ b/include/patchlevel.h @@ -17,7 +17,7 @@ * Incrementing EDITLEVEL can be used to force invalidation of old bones * and save files. */ -#define EDITLEVEL 125 +#define EDITLEVEL 126 /* * Development status possibilities.