mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-12-22 10:29:21 +00:00
tidying
This commit is contained in:
parent
66d6910f91
commit
1b405c6f38
@ -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);
|
||||||
|
@ -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 ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user