Skip to content

Commit

Permalink
Add1000MaxState
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyoko-Jeremie committed May 13, 2024
1 parent 6c00dd9 commit 9724258
Show file tree
Hide file tree
Showing 7 changed files with 407 additions and 53 deletions.
20 changes: 20 additions & 0 deletions src/Cheats/Full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class FullCheatsBase extends Choice {

AllHeart = () => {
if (typeof KinkyDungeonGrid === "undefined") {
return;
// new version 5.0
KDMaxStatStart = 100;
KDMaxStatStartPool = 100;
Expand Down Expand Up @@ -709,6 +710,8 @@ class Bootstrap extends CheatsHook {
this.AddManyKeys();
this.AddManyGold();

this.Add1000MaxState();

this.BootstrapSimpleGood();
};
BootstrapSimpleGood = () => {
Expand Down Expand Up @@ -744,6 +747,23 @@ class Bootstrap extends CheatsHook {
this.DisableInvisibility();
this.DisableMaxEmpower();
};
Add1000MaxState = () => {
// 性欲 分心
KDGameData.StatMaxBonus['AP'] += 100;
// 魔力
KDGameData.StatMaxBonus['MP'] += 100;
// 体力
KDGameData.StatMaxBonus['SP'] += 100;
// 意志
KDGameData.StatMaxBonus['WP'] += 100;

KinkyDungeonStatManaPoolMax += 1000;

KinkyDungeonUpdateStats(0);

KDGameData.CollectedHearts = (KDGameData.CollectedHearts || 0) + 10;

}
}

export class FullCheats extends Bootstrap {
Expand Down
1 change: 1 addition & 0 deletions src/GUI_StringTable/CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const StringTable_CN: StringTableType = {
BootstrapSpellChoicesTable: '【开局】快速设置为Mod预设法术列表(需先使用[增益作弊]开启全部法术列表)',
BootstrapSimpleGood: '【开局】快速开启(除钥匙与黄金外的)增益及动态作弊【风灵月影宗外门入口】',
BootstrapAllNegative: '【开局】快速启用全部 负面减益【风灵月影宗侧门入口】',
Add1000MaxState: '所有属性最大值增加1000',
'Enable Section': '动态内存作弊 Section',
EnableAllCheats: '启动【所有】动态内存作弊(包括[预设法术列表]中的探查和视野法术保持和范围修改)',
DisableAllCheats: '禁用【所有】动态内存作弊',
Expand Down
1 change: 1 addition & 0 deletions src/GUI_StringTable/EN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const StringTable_EN: StringTableType = {
BootstrapSpellChoicesTable: 'BootstrapSpellChoicesTable',
BootstrapSimpleGood: 'BootstrapSimpleGood',
BootstrapAllNegative: 'BootstrapAllNegative',
Add1000MaxState: 'AllMaxStateAdd1000',
'Enable Section': 'Enable Section',
EnableAllCheats: 'EnableAllCheats',
DisableAllCheats: 'DisableAllCheats',
Expand Down
1 change: 1 addition & 0 deletions src/GUI_StringTable/StringTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const StringTableKeys = [
'BootstrapSpellChoicesTable',
'BootstrapSimpleGood',
'BootstrapAllNegative',
'Add1000MaxState',

'Enable Section',
'EnableAllCheats',
Expand Down
10 changes: 10 additions & 0 deletions src/GreasemonkeyScript/CreateGui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,16 @@ export class CreateGui {
cssClassName: 'd-inline',
xgmExtendField: {bootstrap: {btnType: thisRef.btnType}},
},
'Add1000MaxState': {
label: StringTable['Add1000MaxState'],
type: 'button',
click() {
thisRef.winRef.KinkyDungeonMod_EnchantedRestraints.Cheats.Add1000MaxState();
thisRef.playDing(PlayDingType.ding);
},
cssClassName: 'd-inline',
xgmExtendField: {bootstrap: {btnType: thisRef.btnType}},
},
[thisRef.rId()]: {
section: GM_config.create(StringTable['Enable Section']),
type: 'br',
Expand Down
Loading

0 comments on commit 9724258

Please sign in to comment.