diff --git a/exec/load/tdfonts_lib.js b/exec/load/tdfonts_lib.js index c64554bc0c07f087f247ef9325d2aab6c7fb5189..d1422f12a57cc680f3e0b3b9092c7fc33f6a3a2f 100644 --- a/exec/load/tdfonts_lib.js +++ b/exec/load/tdfonts_lib.js @@ -365,6 +365,9 @@ function printrow(glyph, row) { } function output(str, font) { + if (typeof font == "string") + font = loadfont(font); + var maxheight = font.height; // Use the pre-calculated max height from loadfont var linewidth = 0; var len = str.length; diff --git a/exec/tdfiglet.js b/exec/tdfiglet.js index 379355f2b853fdb0bdf2d1a4dd632f6dcf82f262..74f95d7f949095f13dd10fa18d034bbeaaaa694d 100644 --- a/exec/tdfiglet.js +++ b/exec/tdfiglet.js @@ -138,8 +138,6 @@ if (!fontfile && opt.random) { if (!fontfile) usage(); -var font = loadfont(fontfile); - writeln(""); -printstr(input_string, font); +printstr(input_string, fontfile); diff --git a/xtrn/lord/lord.example.ini b/xtrn/lord/lord.example.ini new file mode 100644 index 0000000000000000000000000000000000000000..21f17bce0d23aeeff4573c8bacd10555a963dd23 --- /dev/null +++ b/xtrn/lord/lord.example.ini @@ -0,0 +1,40 @@ +InactivityDays= 15 +Delete1XP= true +CleanMode= false +DeedsToWin= 3 +BankTransfersAllowed= true +BankTransfersPerDay= 2 +MaxTransferAmount= 2000000 +PlayerFightsPerDay= 3 +ForestFightsPerDay= 15 +ResurrectionDays= 3 +OutOfTimeFile= +SafeNode= true +UseFancyMore= true +NoNPCChatter= false +Olivia= true +FunkyFlowers= true +ShopLimit= true +FiveSkillPoints= false +BonusDefForPlayerKill= false +BonusStrForPlayerKill= false +GamePrefix= +;GameServer= nix.synchro.net.57038 +GameUser= QWKID +GamePassword= QWKPASS +MenuDir= +BeefUpForHeroes= false +OldStealAmounts= true +WakeUpDragon= true +DeathKnightBoost= false +NewUglyStick= false + +[Tournament] +Enabled= false +Days= 0 +WinStat= XP +Experience= 0 +DragonKills= 0 +PlayerKills= 0 +Level= 0 +Lays= 0