comparison rogue3/init.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents 0250220d8cdd
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
259 259
260 #define NMETAL (sizeof metal / sizeof (char *)) 260 #define NMETAL (sizeof metal / sizeof (char *))
261 int cNMETAL = NMETAL; 261 int cNMETAL = NMETAL;
262 262
263 struct magic_item things[NUMTHINGS] = { 263 struct magic_item things[NUMTHINGS] = {
264 { "", 27 }, /* potion */ 264 { "", 27, 0 }, /* potion */
265 { "", 27 }, /* scroll */ 265 { "", 27, 0 }, /* scroll */
266 { "", 18 }, /* food */ 266 { "", 18, 0 }, /* food */
267 { "", 9 }, /* weapon */ 267 { "", 9, 0 }, /* weapon */
268 { "", 9 }, /* armor */ 268 { "", 9, 0 }, /* armor */
269 { "", 5 }, /* ring */ 269 { "", 5, 0 }, /* ring */
270 { "", 5 }, /* stick */ 270 { "", 5, 0 }, /* stick */
271 }; 271 };
272 272
273 struct magic_item s_magic[MAXSCROLLS] = { 273 struct magic_item s_magic[MAXSCROLLS] = {
274 { "monster confusion", 8, 170 }, 274 { "monster confusion", 8, 170 },
275 { "magic mapping", 5, 180 }, 275 { "magic mapping", 5, 180 },