Skip to content

Commit

Permalink
fix amor/weapon field visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Sep 18, 2022
1 parent 285d6ce commit a7f60d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions campaign/scripts/item_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ function update(...)
type_stats2.setValue("item_main_weapon", nodeRecord);
elseif tTypes['weapon'] then
type_stats.setValue("item_main_weapon", nodeRecord);
type_stats2.setValue("", "");
elseif tTypes['armor'] then
type_stats.setValue("item_main_armor", nodeRecord);
type_stats2.setValue("", "");
else
type_stats.setValue("", "");
type_stats2.setValue("", "");
tSections[4] = false;
end
else
Expand Down

0 comments on commit a7f60d5

Please sign in to comment.