Skip to content

Commit

Permalink
Add ANSI for the inn
Browse files Browse the repository at this point in the history
  • Loading branch information
rickparrish committed Apr 28, 2024
1 parent 5e186eb commit e8549a3
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE/DOCS/AT-CODES.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ AGILITY The player's agility
ARMOUR_NAME The player's armour name
ARMOUR_POWER The player's armour power
BANK The player's bank deposit amount
BANKMAN The bank manager's name
CHARISMA The player's charisma
CHIVALRY The player's chivalry
CLASS The player's class
Expand All @@ -46,6 +47,7 @@ HAIR The player's hair colour
HEALINGS The player's healing potion count
HEIGHT The player's height, including trailing 'cm'
HP_FRACTION The player's hit points in CURRENT/TOTAL format (eg 5/20)
INNKEEPER The inn keeper's name
LEVEL The player's level
MENTAL_STABILITY The player's mental stability, including trailing % sign
MONEY_TYPE The type of money used, as set in EDITOR (ie gold)
Expand Down
16 changes: 16 additions & 0 deletions RELEASE/TEXT/INN.ANS
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

The Empty Barrel, run by @INNKEEPER@
������������������������������

You enter the pub which is filled with a strange mix of creatures.
Screaming trolls and grim-looking orcs are spread out at small tables
in the center of the room. Elves and humans are mostly concentrated at
the bar, involved in deep conversations about the latest events.
You really don't know what to do...

(L)edger(C)hat rooms(V)iew statements
(M)essage(G)et a Room(N)ew Mail Check
(T)eam corner (H)all of recruitment
(S)tatus(A)ttack Guest
(R)eturn

16 changes: 16 additions & 0 deletions RELEASE/TEXT/INN.ASC
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

The Empty Barrel, run by @INNKEEPER@
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

You enter the pub which is filled with a strange mix of creatures.
Screaming trolls and grim-looking orcs are spread out at small tables
in the center of the room. Elves and humans are mostly concentrated at
the bar, involved in deep conversations about the latest events.
You really don't know what to do...
(L)edger (C)hat rooms (V)iew statements
(M)essage (G)et a Room (N)ew Mail Check
(T)eam corner (H)all of recruitment
(S)tatus (A)ttack Guest
(R)eturn
1 change: 1 addition & 0 deletions SOURCE/USURPER/DISPFILE.PAS
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ begin
'HEALINGS': Result := Long2Str(player.healing);
'HEIGHT': Result := Long2Str(player.height) + 'cm';
'HP_FRACTION': Result := Long2Str(player.hps) + '/' + Long2Str(player.maxhps);
'INNKEEPER': Result := Config.InnKeeper;
'LEVEL': Result := Long2Str(player.level);
'MENTAL_STABILITY': Result := Long2Str(player.mental) + '%';
'MONEY_TYPE':
Expand Down
4 changes: 3 additions & 1 deletion SOURCE/USURPER/INNC.PAS
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ uses
News, Mail, Npc_Chec,
Various, Various2, Various3,
Post_To, Relation, Online,
File_Io;
File_Io, DispFile;

var
sicken: integer;
Expand Down Expand Up @@ -84,6 +84,8 @@ procedure Meny;
const offset = 15;
var s: s90;
begin
// Try to display a custom ANSI, and exit if we succeed
if (DisplayTextFile('INN', player)) then Exit;

s := 'The Empty Barrel, run by ' + config.innkeeper;

Expand Down

0 comments on commit e8549a3

Please sign in to comment.