Skip to content

Commit 378513e

Browse files
committed
1 parent 2832b9e commit 378513e

File tree

3 files changed

+12
-35
lines changed

3 files changed

+12
-35
lines changed

uCorpse.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ procedure TCorpses.Render(AX, AY: Byte);
167167
X := FCorpse[I].X - Player.X + AX + View.Left;
168168
Y := FCorpse[I].Y - Player.Y + AY + View.Top;
169169
if not Game.Wizard and (Player.GetDist(FCorpse[I].X, FCorpse[I].Y) >
170-
Player.GetRadius) then Color := clFog
170+
Player.GetRadius) then
171+
Color := clFog
171172
else
172173
Color := clCorpse;
173174
Terminal.Print(X, Y, '%', Color);

uItem.pas

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ TItemBase = record
3030
type
3131
TItemEnum = (
3232
// All maps
33-
iCorpse, iGold,
34-
iPotionOfHealth1, iPotionOfHealth2, iPotionOfHealth3,
35-
iPotionOfMana1, iPotionOfMana2, iPotionOfMana3,
36-
iFood, iKey,
33+
iCorpse, iGold, iPotionOfHealth1, iPotionOfHealth2, iPotionOfHealth3,
34+
iPotionOfMana1, iPotionOfMana2, iPotionOfMana3, iFood, iKey,
3735
// Dark Wood
3836
iQuiltedArmor, iLeatherArmor, // Armor
3937
iRustySword, iShortSword, // Blade
@@ -549,30 +547,6 @@ destructor TItems.Destroy;
549547
inherited;
550548
end;
551549

552-
// Broadsword, Hilted Sword, Longsword, Bastard Sword
553-
// Combat Sword, War Sword, Claymore, Ebony Sword
554-
// Rusty Iron Wood-Chopping Axe, Battle Axe,
555-
556-
// Phantom Axe, Dwarven Battle Axe, War Axe
557-
// Feathered Spear, Bronze Spear, Rusted Spear
558-
// Small Dagger, a Rusty Dagger, Flying Dagger
559-
// Sharpened Daggers, Gemmed Dagger, Carving Knife
560-
// Boot Knife, Target Knife, Throwing Spike
561-
// Rapier, Sabre,
562-
563-
// Rusty, Chipped
564-
// Low Quality, Medium Quality, High Quality
565-
// Fine, Double Bladed, Enchanted
566-
// Bronze, Iron, Steel
567-
568-
// Short Bow, Battle Bow, Long Bow, Elven Long Bow
569-
// Hunter's Bow, Ranger's Bow, Elvish Longbow, Compound Bow
570-
571-
// Tunic, Chainmail, Platemail
572-
// Padded clothing, Chitin armor, Bone armor, Light armor,
573-
// Medium armor, Mail hauberk, Brigandine,
574-
// Heavy armor, Plate armor,
575-
576550
function TItems.GetName(AItemEnum: TItemEnum): string;
577551
begin
578552
case AItemEnum of
@@ -814,13 +788,15 @@ procedure TItems.AddItemToInv(Index: Integer);
814788
Player.SetAmountScene(False, Index, FItem.Amount);
815789
Exit;
816790
end;
817-
if (Items_Dungeon_DeleteItemXY(MapID, Index, Player.X, Player.Y, FItem) > 0) then
791+
if (Items_Dungeon_DeleteItemXY(MapID, Index, Player.X, Player.Y, FItem) > 0)
792+
then
818793
begin
819794
Items_Inventory_AppendItem(FItem);
820795
The := GetDescThe(Items.GetName(TItemEnum(FItem.ItemID)));
821796
if (FItem.Amount = 1) then
822797
MsgLog.Add(Format(_('You picked up %s.'), [The]))
823-
else MsgLog.Add(Format(_('You picked up %s (%dx).'), [The, FItem.Amount]));
798+
else
799+
MsgLog.Add(Format(_('You picked up %s (%dx).'), [The, FItem.Amount]));
824800
Player.Calc;
825801
end;
826802
end;

uMob.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ TMob = class(TEntity)
244244
Maps: TMapEnum;
245245
Sleep: Boolean;
246246
Boss: Boolean;
247-
public
247+
public
248248
procedure AddRandom(AZ: TMapEnum);
249249
procedure Process;
250250
procedure Render(AX, AY: Byte);
@@ -325,11 +325,11 @@ procedure TMob.AddRandom(AZ: TMapEnum);
325325
Ord(AZ)]));
326326
Self.Boss := True;
327327
IsBoss := True;
328-
{ if Game.Wizard then
329-
begin
328+
{ if Game.Wizard then
329+
begin
330330
Player.X := EnsureRange(X - 1, 0, High(Byte));
331331
Player.Y := EnsureRange(Y - 1, 0, High(Byte));
332-
end; }
332+
end; }
333333
end;
334334
end;
335335

0 commit comments

Comments
 (0)