- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/CommandExtensions/src/Commands/ShowInventory.cs
r391 r402 47 47 48 48 if (tag == null) { 49 SdtdConsole.Instance.Output ( "Belt of player " + p.Name + ":");49 SdtdConsole.Instance.Output ($"Belt of player {p.Name}:"); 50 50 } 51 51 … … 56 56 57 57 if (tag == null) { 58 SdtdConsole.Instance.Output ( "Bagpack of player " + p.Name + ":");58 SdtdConsole.Instance.Output ($"Bagpack of player {p.Name}:"); 59 59 } 60 60 … … 65 65 66 66 if (tag == null) { 67 SdtdConsole.Instance.Output ( "Equipment of player " + p.Name + ":");67 SdtdConsole.Instance.Output ($"Equipment of player {p.Name}:"); 68 68 } 69 69 … … 71 71 72 72 if (tag != null) { 73 SdtdConsole.Instance.Output ("tracker_item id=" + p.EntityID + ", tag=" + tag + 74 ", SHOWINVENTORY DONE"); 73 SdtdConsole.Instance.Output ($"tracker_item id={p.EntityID}, tag={tag}, SHOWINVENTORY DONE"); 75 74 } 76 75 } … … 94 93 // Tag defined -> parseable output 95 94 string partsMsg = DoParts (_inv [i].parts, 1, ""); 96 string msg = "tracker_item id=" + _entityId + ", tag=" + _tag + ", location=" + _location + 97 ", slot=" + i + ", item=" + _inv [i].itemName + ", qnty=" + _inv [i].count + 98 ", quality=" + _inv [i].quality + ", parts=(" + partsMsg + ")"; 95 string msg = 96 $"tracker_item id={_entityId}, tag={_tag}, location={_location}, slot={i}, item={_inv [i].itemName}, qnty={_inv [i].count}, quality={_inv [i].quality}, parts=({partsMsg})"; 99 97 SdtdConsole.Instance.Output (msg); 100 98 } … … 140 138 // Tag defined -> parseable output 141 139 string partsMsg = DoParts (_items [slotindices [i]].parts, 1, ""); 142 string msg = "tracker_item id=" + _entityId + ", tag=" + _tag + ", location=" + _location + 143 ", slot=" + _slotname + ", item=" + item.itemName + ", qnty=1, quality=" + 144 item.quality + ", parts=(" + partsMsg + ")"; 140 string msg = 141 $"tracker_item id={_entityId}, tag={_tag}, location={_location}, slot={_slotname}, item={item.itemName}, qnty=1, quality={item.quality}, parts=({partsMsg})"; 145 142 SdtdConsole.Instance.Output (msg); 146 143 } … … 176 173 } 177 174 178 _currentMessage += _parts [i].itemName + "@" + _parts [i].quality;175 _currentMessage += $"{_parts [i].itemName}@{_parts [i].quality}"; 179 176 _currentMessage = DoParts (_parts [i].parts, _indent + 1, _currentMessage); 180 177 }
Note:
See TracChangeset
for help on using the changeset viewer.