Skip to content

Commit f52b8ae

Browse files
committed
improve armor system, inventory and storage management and fixes
1 parent bea55db commit f52b8ae

43 files changed

Lines changed: 3353 additions & 800 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## v0.8.0
4+
5+
### New Features
6+
7+
- add Outfit selector on Player page
8+
- armor: add buttons to remove / set to default durability / set to max durability
9+
- armor: add buttons to set all armor items to default/max durability
10+
- inventory: add button to add all items from a category (weapon, ammo etc.)
11+
- inventory: add button to remove/set item count to max (for all and single)
12+
- inventory: add max count for items
13+
- storage: add button to fill all storages
14+
- storage: add max count for items
15+
16+
### Improvements
17+
18+
- inventory: instead of double click, items are now added and removed from inventory using buttons
19+
- inventory: new items are now added with their max value by default
20+
- storage: in the upper "all slots" box, the first available item is now selected by default
21+
- storage: all items for mannequin and scarecrow are now hidden
22+
- teleporting will now add a small offset on the Y-Axis to prevent glitching into the ground
23+
- Some performance improvements
24+
25+
### Fixes
26+
27+
- Golden Armor is now an outfit, removed from Armor Box
28+
- Remove Creepy Skin from Armor selector
29+
- Items that can not be stored in inventory/shelves are now disabled
30+
331
## v0.7.1
432

533
### Improvements

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ done with editing.
7575

7676
## Inventory
7777

78-
- In order to add or remove items, just double click on the row
79-
- There is no sanity check on the values entered at the player's inventory. So something like "100" for backpack will most likely lead to undesired behaviors.
78+
- In order to add or remove items, click on the add or remove buttons
79+
- You can use the other buttons to modify the current count in a convenient way
8080

8181
## Armor
8282

SOTFEdit/App.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
23
<configuration>
34
<configSections>
45
<sectionGroup name="userSettings"

SOTFEdit/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// app, or any theme specific resource dictionaries)
1313
)]
1414
[assembly: AssemblyCompany("codengine")]
15-
[assembly: AssemblyFileVersion("0.7.1")]
16-
[assembly: AssemblyInformationalVersion("0.7.1")]
15+
[assembly: AssemblyFileVersion("0.8.0")]
16+
[assembly: AssemblyInformationalVersion("0.8.0")]
1717
[assembly: AssemblyProduct("SOTFEdit")]
1818
[assembly: AssemblyTitle("SOTFEdit")]
19-
[assembly: AssemblyVersion("0.7.1")]
19+
[assembly: AssemblyVersion("0.8.0")]
2020
[assembly: TargetPlatform("Windows7.0")]
2121
[assembly: SupportedOSPlatform("Windows7.0")]
2222
[assembly: Guid("d59ec208-5fc6-4336-a9db-dbeb36938f78")]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
3+
namespace SOTFEdit.Infrastructure;
4+
5+
public static class StringExtensions
6+
{
7+
public static string FirstCharToUpper(this string input) =>
8+
input switch
9+
{
10+
null => throw new ArgumentNullException(nameof(input)),
11+
"" => throw new ArgumentException($"{nameof(input)} cannot be empty", nameof(input)),
12+
_ => string.Concat(input[0].ToString().ToUpper(), input.AsSpan(1))
13+
};
14+
}

0 commit comments

Comments
 (0)