Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Nov 3, 2024
1 parent 52ce2af commit a289bff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ void CalcSelfItems(Player &player)
}

if (currstr < equipment._iMinStr
&& currmag < equipment._iMinMag
&& currdex < equipment._iMinDex)
|| currmag < equipment._iMinMag
|| currdex < equipment._iMinDex)
isValid = false;

if (isValid)
Expand Down
1 change: 1 addition & 0 deletions test/player_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ TEST(Player, CreatePlayer)
ASSERT_TRUE(HaveSpawn() || HaveDiabdat());

LoadPlayerDataFiles();
LoadMonsterData();
LoadItemData();
Players.resize(1);
CreatePlayer(Players[0], HeroClass::Rogue);
Expand Down
1 change: 1 addition & 0 deletions test/writehero_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ TEST(Writehero, pfile_write_hero)

LoadSpellData();
LoadPlayerDataFiles();
LoadMonsterData();
LoadItemData();
_uiheroinfo info {};
info.heroclass = HeroClass::Rogue;
Expand Down

0 comments on commit a289bff

Please sign in to comment.