From 10e9633963797cac6bb94bb2950e7a1fcc25c1d3 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 20 Apr 1993 22:00:26 +0000 Subject: Don't modify string constants. --- larn/data.c | 137 ++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 72 insertions(+), 65 deletions(-) (limited to 'larn/data.c') diff --git a/larn/data.c b/larn/data.c index a8739bab..d0f19c28 100644 --- a/larn/data.c +++ b/larn/data.c @@ -295,74 +295,81 @@ struct monst monster[] = { /* name array for scrolls */ -char *scrollname[] = { -"\0enchant armor", -"\0enchant weapon", -"\0enlightenment", -"\0blank paper", -"\0create monster", -"\0create artifact", -"\0aggravate monsters", -"\0time warp", -"\0teleportation", -"\0expanded awareness", -"\0haste monsters", -"\0monster healing", -"\0spirit protection", -"\0undead protection", -"\0stealth", -"\0magic mapping", -"\0hold monsters", -"\0gem perfection", -"\0spell extension", -"\0identify", -"\0remove curse", -"\0annihilation", -"\0pulverization", -"\0life protection", -"\0 ", -"\0 ", -"\0 ", -"\0 " +char *scrollname[] = {"","","","","","","","","","","","","","", + "","","","","","","","","","","","","",""}; + +char *scrollhide[] = { +" enchant armor", +" enchant weapon", +" enlightenment", +" blank paper", +" create monster", +" create artifact", +" aggravate monsters", +" time warp", +" teleportation", +" expanded awareness", +" haste monsters", +" monster healing", +" spirit protection", +" undead protection", +" stealth", +" magic mapping", +" hold monsters", +" gem perfection", +" spell extension", +" identify", +" remove curse", +" annihilation", +" pulverization", +" life protection", +" ", +" ", +" ", +" " }; +char *potionname[] = {"","","","","","","","","","","","","","", + "","","","","","","","","","","","","","", + "","","","","","",""}; + /* name array for magic potions */ -char *potionname[] = { -"\0sleep", -"\0healing", -"\0raise level", -"\0increase ability", -"\0wisdom", -"\0strength", -"\0raise charisma", -"\0dizziness", -"\0learning", -"\0gold detection", -"\0monster detection", -"\0forgetfulness", -"\0water", -"\0blindness", -"\0confusion", -"\0heroism", -"\0sturdiness", -"\0giant strength", -"\0fire resistance", -"\0treasure finding", -"\0instant healing", -" cure dianthroritis", -"\0poison", -"\0see invisible", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 ", -"\0 " +char *potionhide[] = { +" sleep", +" healing", +" raise level", +" increase ability", +" wisdom", +" strength", +" raise charisma", +" dizziness", +" learning", +" gold detection", +" monster detection", +" forgetfulness", +" water", +" blindness", +" confusion", +" heroism", +" sturdiness", +" giant strength", +" fire resistance", +" treasure finding", +" instant healing", +" ure dianthroritis", +" poison", +" see invisible", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" " }; -- cgit v1.2.3-56-ge451