This commit is contained in:
Denis Molony 2022-05-29 18:53:08 +10:00
parent 66d6910f91
commit 1b405c6f38
2 changed files with 6 additions and 12 deletions

View File

@ -146,8 +146,10 @@ class CharacterV1 extends Character
text.append ("\nMaximum hits ....... " + stats.hitsMax); text.append ("\nMaximum hits ....... " + stats.hitsMax);
text.append ("\nArmour class ....... " + stats.armourClass); text.append ("\nArmour class ....... " + stats.armourClass);
text.append ("\nAsset value ........ " + String.format ("%,d", stats.assetValue)); text.append ("\nAsset value ........ " + String.format ("%,d", stats.assetValue));
text.append ("\nAwards ............. " + getAwardString ()); text.append ("\nAwards ............. " + getAwardString ());
text.append ("\nOut ................ " + isOut ()); text.append ("\nOut ................ " + isOut ());
text.append ("\n\nStrength ........... " + attributes.strength); text.append ("\n\nStrength ........... " + attributes.strength);
text.append ("\nIntelligence ....... " + attributes.intelligence); text.append ("\nIntelligence ....... " + attributes.intelligence);
text.append ("\nPiety .............. " + attributes.piety); text.append ("\nPiety .............. " + attributes.piety);

View File

@ -11,18 +11,10 @@ public class CharacterV4 extends Character
// -----------------------------------------------------------------------------------// // -----------------------------------------------------------------------------------//
{ {
private static int MAX_POSSESSIONS = 8; private static int MAX_POSSESSIONS = 8;
private static int MAX_SPELLS = 50;
static int MAGE_SPELLS = 0; static int MAGE_SPELLS = 0;
static int PRIEST_SPELLS = 1; static int PRIEST_SPELLS = 1;
public static final String[] spells = { "Halito", "Mogref", "Katino", "Dumapic", "Dilto", "Sopic",
"Mahalito", "Molito", "Morlis", "Dalto", "Lahalito", "Mamorlis", "Makanito", "Madalto",
"Lakanito", "Zilwan", "Masopic", "Haman", "Malor", "Mahaman", "Tiltowait",
"Kalki", "Dios", "Badios", "Milwa", "Porfic", "Matu", "Calfo", "Manifo", "Montino", "Lomilwa",
"Dialko", "Latumapic", "Bamatu", "Dial", "Badial", "Latumofis", "Maporfic", "Dialma",
"Badialma", "Litokan", "Kandi", "Di", "Badi", "Lorto", "Madi", "Mabadi", "Loktofeit",
"Malikto", "Kadorto" };
int id; int id;
int nextCharacterId; int nextCharacterId;
CharacterParty party; CharacterParty party;
@ -154,7 +146,7 @@ public class CharacterV4 extends Character
if (index >= 0) if (index >= 0)
spellsKnown[index] = true; spellsKnown[index] = true;
if (++index >= spells.length) if (++index >= MAX_SPELLS)
break; break;
} }
@ -278,8 +270,8 @@ public class CharacterV4 extends Character
text.append (party); text.append (party);
} }
text.append ("\n\n"); // text.append ("\n\n");
text.append (HexFormatter.format (buffer, 1, buffer[0] & 0xFF)); // text.append (HexFormatter.format (buffer, 1, buffer[0] & 0xFF));
return text.toString (); return text.toString ();
} }