Browse Source

[added] Willpower cheat as promised some time ago. It should set all costs to 0 so willpower options are always available.

KevinSmarts 3 years ago
parent
commit
629a66cef2
2 changed files with 16 additions and 1 deletions
  1. 14 0
      locations/Cheatmenu_din.qsrc
  2. 2 1
      locations/willpower.qsrc

+ 14 - 0
locations/Cheatmenu_din.qsrc

@@ -18,6 +18,17 @@ $cheatmenu['work'] = {
 	end
 }
 
+$cheatmenu['willpower'] = {
+	if cheatWillpower = 0:
+		cheatWillpower = 1
+		dynamic $cheatmenu['permanent']
+		exit
+	elseif cheatWillpower = 1:
+		cheatWillpower = 0
+		dynamic $cheatmenu['permanent']
+	end
+}
+
 $cheatmenu['hair'] = {
 	if cheatHapri = 0:
 		cheatHapri = 1
@@ -434,6 +445,8 @@ $cheatmenu['permanent'] = {
 	gs 'obj_din', 'cheattabs'
 	if cheatWork = 0:$cheatWork = 'Currently OFF'
 	if cheatWork = 1:$cheatWork = 'Currently ON'
+	if cheatWillpower = 0:$cheatWillpower = 'Currently OFF'
+	if cheatWillpower = 1:$cheatWillpower = 'Currently ON'
 	if cheatHapri = 0:$cheatHapri = 'Currently OFF'
 	if cheatHapri = 1:$cheatHapri = 'Currently ON'
 	if cheatKlisma = 1:$cheatKlisma = 'Currently OFF'
@@ -492,6 +505,7 @@ $cheatmenu['permanent'] = {
 	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
 	'<td width="450" cellspacing="0" cellpadding="20" valign="top">'
 	'More than one job is possible: <a href="exec:dynamic $cheatmenu[''work'']"><<$cheatWork>></a>'
+	'Willpower cost always zero: <a href="exec:dynamic $cheatmenu[''willpower'']"><<$cheatWillpower>></a>'
 	'Always combed: <a href="exec:dynamic $cheatmenu[''hair'']"><<$cheatHapri>></a>'
 	'Cosmetics never smeared: <a href="exec:dynamic $cheatmenu[''nomakeup'']"><<$cheatNomakeup>></a>'
 	'Never sweat: <a href="exec:dynamic $cheatmenu[''nosweat'']"><<$cheatNoSweat>></a>'

+ 2 - 1
locations/willpower.qsrc

@@ -919,10 +919,11 @@ if $ARGS[0] = 'difficulty':
 	else
 		if will_cost < 6: will_cost = 6
 	end
+	if cheatWillpower = 1: will_cost = 0
 end
 
 if $ARGS[0] = 'pay':
-	if will_cost < 1: will_cost = 1
+	if will_cost < 1 and cheatWillpower = 0: will_cost = 1
 	pcs_willpwr -= will_cost
 	if $ARGS[1] = 'force':
 		will_counter += 1