|
@@ -1,37 +1,7 @@
|
|
|
:: mod_cheats_scripts[script]
|
|
|
/* Start Mod: "Mod" */
|
|
|
-
|
|
|
-window.modsLoading ??= [];
|
|
|
-window.modsLoading.push({id:'cheats',onLoad:(variables) => {
|
|
|
- console.warn('Mod Loading: Cheatmenu');
|
|
|
-
|
|
|
-
|
|
|
- /*Object.defineProperty(PlayerCharacter.prototype, 'pcs_energy_raw', Object.getOwnPropertyDescriptor(PlayerCharacter.prototype, 'pcs_energy'));
|
|
|
- //Object.defineProperty(PlayerCharacter.prototype, 'pcs_hydra_raw', Object.getOwnPropertyDescriptor(PlayerCharacter.prototype, 'pcs_hydra'));
|
|
|
-
|
|
|
- Object.defineProperty(PlayerCharacter.prototype, 'pcs_energy', {
|
|
|
- get() {return State?.variables.modVars.cheatmenu.cheatHunger ? 100 : this.pcs_energy_raw;},
|
|
|
+ Object.defineProperty(setup.PlayerCharacter.prototype, 'pcs_energy', {
|
|
|
+ get() {return 100;},
|
|
|
set(v){this.pcs_energy_raw = v;}});
|
|
|
- console.warn(PlayerCharacter.prototype.pcs_energy);*/
|
|
|
-}});
|
|
|
|
|
|
/* End Mod: "Mod" */
|
|
|
-
|
|
|
-:: mod_cheats_menu_after[mod Menu_after]
|
|
|
-<<act 'Cheat Menu'>>
|
|
|
- <<gt 'mod_cheats_menu_menu'>>
|
|
|
-<</act>>
|
|
|
-:: mod_cheats_menu_menu[mod menu]
|
|
|
-<<act 'Confirm'>>
|
|
|
- <<gs 'mod_cheats_stat_15minutes_changes_after'>>
|
|
|
- <<gt 'Menu'>>
|
|
|
-<</act>>
|
|
|
-<h2>Cheats</h2>
|
|
|
-<p><<checkbox "$modVars.cheats.cheatHunger" false true autocheck>> Disable Hunger</p>
|
|
|
-<p><<checkbox "$modVars.cheats.cheatThirst" false true autocheck>> Disable Thirst</p>
|
|
|
-<p><<checkbox "$modVars.cheats.cheatSleep" false true autocheck>> Disable Sleep (don't forget to set your alarm clock or you will sleep for a very long time)</p>
|
|
|
-
|
|
|
-:: mod_cheats_stat_15minutes_changes_after[mod stat_15minutes_changes_after]
|
|
|
-<<if $modVars.cheats.cheatHunger>><<set $pc.pcs_energy = 100>><</if>>
|
|
|
-<<if $modVars.cheats.cheatThirst>><<set $pc.pcs_hydra = 100>><</if>>
|
|
|
-<<if $modVars.cheats.cheatSleep>><<set $pc.pcs_sleep = 50>><</if>>
|