@@ -30,10 +30,8 @@ TItemBase = record
3030type
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 ;
550548end ;
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-
576550function TItems.GetName (AItemEnum: TItemEnum): string;
577551begin
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 ;
826802end ;
0 commit comments