You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Main/Source/item.cpp
+5-2
Original file line number
Diff line number
Diff line change
@@ -864,8 +864,11 @@ void item::AddInventoryEntry(ccharacter*, festring& Entry, int Amount, truth Sho
864
864
}
865
865
866
866
if(ShowSpecialInfo){
867
-
Entry << " [" << GetWeight() * Amount << "g"; //TODO if the 1st and 2nd of 3 items have 100g and the last has 2000g, the weight shown would be 300g ... now that lumps, stones and sticks are useful, this may not be that good...
868
-
if(ivanconfig::IsShowVolume()){
867
+
//TODO if the 1st and 2nd of 3 items have 100g and the last has 2000g, the weight shown would be 300g ... now that lumps, stones and sticks are useful, this may not be that good...
868
+
Entry << " [";
869
+
Entry.PutWeight(GetWeight() * Amount);
870
+
871
+
if(ivanconfig::IsShowVolume()) {
869
872
Entry << "" << GetVolume() * Amount << "cm3"; //the item can be seen therefore it's volume guessed already
870
873
if(GetSecondaryMaterial()==NULL){ //simple items like ingots sticks etc
0 commit comments