Skip to content

Commit

Permalink
5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebby1999 committed Sep 10, 2024
1 parent c909d42 commit 14e7d25
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 22 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### '5.1.1'

* General
* Updated to use version 1.3.4 of Risk of Rain 2
* RoR2EditorKit now loads as long as a version of the game greater than 1.3.1 is loaded, instead of being a strict version rule.

* Core Changes:
* Removed the code bits of the EditorSettings pertraining to the ThunderKit integration

### '5.1.0'

* General Changes:
Expand Down
6 changes: 0 additions & 6 deletions Editor/Core/Data/R2EKSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ public sealed class R2EKSettings : ScriptableSingleton<R2EKSettings>
public bool isFirstTimeBoot { get => _isFirstTimeBoot; set => _isFirstTimeBoot = value; }
[SerializeField] private bool _isFirstTimeBoot = true;

/// <summary>
/// Checks if the ThunderKit integration system is enabled.
/// </summary>
public bool enableThunderkitIntegration => _enableThunderkitIntegration;
[SerializeField] private bool _enableThunderkitIntegration = false;

/// <summary>
/// Checks if R2EK should purge <see cref="R2EKEditorProjectSettings"/> of orphaned settings
/// </summary>
Expand Down
8 changes: 0 additions & 8 deletions Editor/Core/Data/R2EKSettingsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ public override void OnDeactivate()
base.OnDeactivate();
serializedObject.ApplyModifiedProperties();
Save();
if (settings.enableThunderkitIntegration && !ScriptingSymbolManager.ContainsDefine("R2EK_THUNDERKIT"))
{
ScriptingSymbolManager.AddScriptingDefine("R2EK_THUNDERKIT");
}
else if (!settings.enableThunderkitIntegration && ScriptingSymbolManager.ContainsDefine("R2EK_THUNDERKIT"))
{
ScriptingSymbolManager.RemoveScriptingDefine("R2EK_THUNDERKIT");
}
}

private void Save()
Expand Down
10 changes: 5 additions & 5 deletions Editor/R2APISupport/RoR2.Editor.R2API.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
"versionDefines": [
{
"name": "riskofrain2",
"expression": "[1.3.1]",
"expression": "1.3.1",
"define": "R2EK_ROR2_IMPORTED"
},
{
"name" : "riskofthunder-r2api_addressables",
"expression" : "1.0.3",
"name": "riskofthunder-r2api_addressables",
"expression": "1.0.3",
"define": "R2EK_R2API_ADDRESSABLES"
},
{
"name" : "riskofthunder-r2api_core",
"expression" : "5.1.1",
"name": "riskofthunder-r2api_core",
"expression": "5.1.1",
"define": "R2EK_R2API_ENABLE"
}
],
Expand Down
2 changes: 1 addition & 1 deletion Editor/RoR2/RoR2.Editor.Scripts.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"versionDefines": [
{
"name": "riskofrain2",
"expression": "[1.3.1]",
"expression": "1.3.1",
"define": "R2EK_ROR2_IMPORTED"
}
],
Expand Down
2 changes: 1 addition & 1 deletion Editor/ThunderkitSupport/RoR2.Editor.ThunderKit.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
{
"name": "riskofrain2",
"expression": "[1.3.1]",
"expression": "1.3.1",
"define": "R2EK_ROR2_IMPORTED"
}
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": ""
},
"displayName": "RoR2EditorKit",
"version": "5.1.0",
"version": "5.1.1",
"unity": "2021.3",
"description": "The Risk of Rain 2 Editor Kit (Abreviated as ROR2EK) is a Thunderkit Extension designed specifically for helping mod creators create content for Risk of Rain 2.",
"dependencies": {
Expand Down

0 comments on commit 14e7d25

Please sign in to comment.