diff options
author | mycroft <mycroft@NetBSD.org> | 1993-04-20 22:00:26 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1993-04-20 22:00:26 +0000 |
commit | 10e9633963797cac6bb94bb2950e7a1fcc25c1d3 (patch) | |
tree | 8c6c0902173e113726e24c7515abccdbc208456b /larn/data.c | |
parent | 398e51a3c905d11cf31c42e7bd5cce452bcd5534 (diff) | |
download | bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.tar.gz bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.tar.zst bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.zip |
Don't modify string constants.
Diffstat (limited to 'larn/data.c')
-rw-r--r-- | larn/data.c | 137 |
1 files changed, 72 insertions, 65 deletions
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", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" " }; |