Changeset 287
- Timestamp:
- Jul 18, 2016, 1:10:42 PM (8 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/PersistentData
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/InvItem.cs
r253 r287 12 12 public string icon = ""; 13 13 public string iconcolor = ""; 14 [OptionalField] 15 public int maxUseTimes; 16 [OptionalField] 17 public int useTimes; 14 18 15 public InvItem (string itemName, int count, int quality = -1) {19 public InvItem (string itemName, int count, int quality, int maxUseTimes, int maxUse) { 16 20 this.itemName = itemName; 17 21 this.count = count; 18 22 this.quality = quality; 23 this.maxUseTimes = maxUseTimes; 24 this.useTimes = maxUse; 19 25 } 20 26 } -
binary-improvements/7dtd-server-fixes/src/PersistentData/Inventory.cs
r253 r287 69 69 InvItem item = null; 70 70 if (_itemValue.HasQuality) { 71 item = new InvItem (name, _count, _itemValue.Quality );71 item = new InvItem (name, _count, _itemValue.Quality, _itemValue.MaxUseTimes, _itemValue.UseTimes); 72 72 } else { 73 item = new InvItem (name, _count );73 item = new InvItem (name, _count, -1, _itemValue.MaxUseTimes, _itemValue.UseTimes); 74 74 } 75 75 -
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r279 r287 27 27 private int maxChatLength; 28 28 [OptionalField] 29 private string chatColor; 30 [OptionalField] 31 private bool chatName; 32 [OptionalField] 29 33 private uint expToNextLevel; 30 34 [OptionalField] … … 151 155 set { 152 156 maxChatLength = value; 157 } 158 } 159 160 public string ChatColor { 161 get { 162 if (chatColor == null || chatColor == "") { 163 chatColor = ""; 164 } 165 return chatColor; 166 } 167 168 set { 169 chatColor = value; 170 } 171 } 172 173 public bool ChatName { 174 get { 175 return chatName; 176 } 177 178 set { 179 chatName = value; 153 180 } 154 181 }
Note:
See TracChangeset
for help on using the changeset viewer.