Skip to content

Commit

Permalink
feat: unlock all modes
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Jan 9, 2022
1 parent 41ad377 commit 2e02a6d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GodSeekerPlus/Lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"ToggleableLevel/ReloadSave": "Reload the save to apply change",
"ToggleableLevel/RestartGame": "Restart the game to apply change",
"Categories/BossChallenge": "Boss Challenge",
"Categories/Misc": "Miscellaneous",
"Categories/NewSaveQuickstart": "New Save Quickstart",
"Categories/QoL": "Quality of Life",
"Categories/Restrictions": "Restrictions",
Expand All @@ -28,6 +29,7 @@
"Modules/NoNailDamage": "No Nail Damage",
"Modules/NoSpellDamage": "No Spell Damage",
"Modules/P5Health": "P5 Health",
"Modules/UnlockAllModes": "Unlock All Modes",
"Modules/UnlockEternalOrdeal": "Unlock Eternal Ordeal",
"Modules/UnlockRadiance": "Unlock Radiance",
"Modules/UnlockRadiant": "Unlock Radiant"
Expand Down
2 changes: 2 additions & 0 deletions GodSeekerPlus/Lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"ToggleableLevel/ReloadSave": "重新加载存档以生效",
"ToggleableLevel/RestartGame": "重启游戏以生效",
"Categories/BossChallenge": "Boss 挑战",
"Categories/Misc": "杂项",
"Categories/NewSaveQuickstart": "新存档起步",
"Categories/QoL": "生活质量",
"Categories/Restrictions": "限制",
Expand All @@ -28,6 +29,7 @@
"Modules/NoNailDamage": "取消骨钉伤害",
"Modules/NoSpellDamage": "取消法术伤害",
"Modules/P5Health": "五门血量",
"Modules/UnlockAllModes": "解锁所有模式",
"Modules/UnlockEternalOrdeal": "解锁无尽折磨",
"Modules/UnlockRadiance": "解锁辐光",
"Modules/UnlockRadiant": "解锁辐辉"
Expand Down
10 changes: 10 additions & 0 deletions GodSeekerPlus/Modules/Misc/UnlockAllModes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace GodSeekerPlus.Modules.Misc;

[DefaultEnabled]
internal sealed class UnlockAllModes : Module {
private protected override void Load() {
Platform.ISharedData data = Platform.Current.EncryptedSharedData;
data.SetInt("RecPermadeathMode", 1);
data.SetInt("RecBossRushMode", 1);
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Compatible with `Hollow Knight` 1.5.
+ **No Nail Damage**: Remove damage from nail attacks, including nail arts.
+ **No Spell Damage**: Remove damage from spells, including Sharp Shadow.

- **Miscellaneous**
+ **Unlock All Modes**: Auto unlock Steel Soul mode and Godseeker mode.

All features can be toggled in-game.

## Configuration
Expand All @@ -61,6 +64,7 @@ All features can be toggled in-game.
+ `NoNailDamage*` (`Boolean`): Whether to enable the No Nail Damage feature. Defaults to `false`.
+ `NoSpellDamage*` (`Boolean`): Whether to enable the No Spell Damage feature. Defaults to `false`.
+ `P5Health` (`Boolean`): Whether to enable the P5 Health feature. Defaults to `false`.
+ `UnlockAllModes` (`Boolean`): Whether to enable the Unlock All Modes feature. Defaults to `true`.
+ `UnlockEternalOrdeal` (`Boolean`): Whether to enable the Unlock Eternal Ordeal feature. Defaults to `true`.
+ `UnlockRadiance` (`Boolean`): Whether to enable the Unlock Radiance feature. Defaults to `true`.
+ `UnlockRadiant` (`Boolean`): Whether to enable the Unlock Radiant feature. Defaults to `true`.
Expand Down
4 changes: 4 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
+ **取消骨钉伤害**:取消骨钉攻击伤害,包括骨钉技艺。
+ **取消法术伤害**:取消法术攻击伤害,包括锋利之影。

- **杂项**
+ **解锁所有模式**:自动解锁钢铁之魂模式和寻神者模式。

所有功能均可在游戏中开启或关闭。

## 配置
Expand All @@ -61,6 +64,7 @@
+ `NoNailDamage*` (`Boolean`):是否启用 `取消骨钉伤害` 功能。默认为 `false`
+ `NoSpellDamage*` (`Boolean`):是否启用 `取消法术伤害` 功能。默认为 `false`
+ `P5Health` (`Boolean`):是否启用 `五门血量` 功能。默认为 `false`
+ `UnlockAllModes` (`Boolean`):是否启用 `解锁所有模式` 功能。默认为 `true`
+ `UnlockEternalOrdeal` (`Boolean`):是否启用 `解锁无尽折磨` 功能。默认为 `true`
+ `UnlockRadiance` (`Boolean`):是否启用 `解锁辐光` 功能。默认为 `true`
+ `UnlockRadiant` (`Boolean`):是否启用 `解锁辐辉` 功能。默认为 `true`
Expand Down

0 comments on commit 2e02a6d

Please sign in to comment.