Skip to content

Commit 50c18c5

Browse files
committed
Update to tML v0.11.2.2
1 parent 0d48e24 commit 50c18c5

16 files changed

+107
-359
lines changed

Abilities/SoulLink.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ internal override void Tick() {
9595
return;
9696
}
9797
}
98-
bool tempObstructed;
99-
CheckValidPlacement(player.Center.ToTileCoordinates(), out tempObstructed, force:true);
98+
CheckValidPlacement(player.Center.ToTileCoordinates(), out bool tempObstructed, force:true);
10099
if (tempObstructed) {
101100
if (!WasObstructed) {
102101
Main.NewText("Cannot place a Soul Link here...");

Abilities/WallChargeJump.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ public WallChargeJump(OriPlayer oriPlayer, OriAbilities handler) : base(oriPlaye
2727

2828
public Projectile Proj { get; private set; }
2929

30-
internal Vector2 GetMouseDirection() {
31-
float _;
32-
return GetMouseDirection(out _);
33-
}
30+
internal Vector2 GetMouseDirection() => GetMouseDirection(out float _);
3431
internal Vector2 GetMouseDirection(out float angle) {
3532
Vector2 mouse = Main.MouseWorld - player.Center;
3633
mouse.X *= -Handler.climb.WallDir;

Ability.cs

+11-11
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ public enum States {
4545
/// <value></value>
4646
public States State { get; internal set; }
4747
public bool Active {
48-
get { return State == States.Active; }
49-
internal set { State = value ? States.Active : State; }
48+
get => State == States.Active;
49+
internal set => State = value ? States.Active : State;
5050
}
5151
public bool Starting {
52-
get { return State == States.Starting; }
53-
internal set { State = value ? States.Starting : State; }
52+
get => State == States.Starting;
53+
internal set => State = value ? States.Starting : State;
5454
}
5555
public bool Ending {
56-
get { return State == States.Ending; }
57-
internal set { State = value ? States.Ending : State; }
56+
get => State == States.Ending;
57+
internal set => State = value ? States.Ending : State;
5858
}
5959
public bool Inactive {
60-
get { return State == States.Inactive; }
61-
internal set { State = value ? States.Inactive : State; }
60+
get => State == States.Inactive;
61+
internal set => State = value ? States.Inactive : State;
6262
}
6363
public bool Failed {
64-
get { return State == States.Failed; }
65-
internal set { State = value ? States.Failed : State; }
64+
get => State == States.Failed;
65+
internal set => State = value ? States.Failed : State;
6666
}
6767
/// <summary>
6868
/// Determines if the ability has been unlocked by the player.
@@ -79,7 +79,7 @@ public bool Failed {
7979
internal abstract bool DoUpdate { get; }
8080
private bool _refreshed = true;
8181
internal bool Refreshed {
82-
get { return _refreshed; }
82+
get => _refreshed;
8383
set {
8484
if (!_refreshed && value) {
8585
OnRefreshed();

CHANGELOG.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
# v2.3.1
2-
#### This update was originally written with tML 0.11.2.2 in mind.
3-
#### Much of the mod had to be modified to support a patch for tML 0.10.1.5.
4-
#### A patch for tML v0.11.2.2 is ready for when it's pushed to all players.
1+
# v2.3.1.2
2+
## Update to tML v0.11.2.2
3+
## Additions
4+
- Use the Mod Configurations menu
5+
- This will make configs (especially player color) much easier to work with.
6+
- Add most ability variables to config
7+
## Removals
8+
- Removed the old config file
9+
- Removed `/config`, `/color`, `/color2` commands.
10+
- All of this is much easier in the Config menu.
11+
12+
# v2.3.1.1
13+
## Bug Fixes
14+
- Fixed a possible issue with Mac and Linux.
515

616
# v2.3.1.1
717
## Bug Fixes

Commands/ConfigCommand.cs

-34
This file was deleted.

Commands/SetColor.cs

-45
This file was deleted.

Commands/SetColor2.cs

-48
This file was deleted.

Config.cs

-94
This file was deleted.

0 commit comments

Comments
 (0)