Skip to content

Commit

Permalink
negative tightness
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyoko-Jeremie committed Jun 12, 2024
1 parent 1366539 commit cf93a7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Cheats/Restraint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,13 @@ class RestraintBase {
// "unlockProgress": 0,
// "cutProgress": 0
// };
if (!(isSafeInteger(d) && d >= 0)) {
console.warn('SetNowRestraintDifficulty d is not a good integer:', d);
if (!(isSafeInteger(d))) {
console.warn('SetNowRestraintDifficulty d is not a safe integer:', d);
d = 0;
}
if (!(d >= 0)) {
console.warn('SetNowRestraintDifficulty d is not a positive integer:', d);
}

// const rw = KinkyDungeonAllRestraint();
item.tightness = d;
Expand Down

0 comments on commit cf93a7d

Please sign in to comment.