Browse Source

[fixed] willpower tank not set correctly and fight ending tagnot reset correctly after one of the fights

KevinSmarts 5 years ago
parent
commit
d27bdafbed
2 changed files with 2 additions and 3 deletions
  1. 1 2
      locations/ender.qsrc
  2. 1 1
      locations/stat.qsrc

+ 1 - 2
locations/ender.qsrc

@@ -290,7 +290,7 @@ if $ARGS[0] = 'win':
 		exit
 	elseif fightEnding = 7:
 		KisameDead = 1
-		fightEnding = 2
+		fightEnding = 0
 		Win += 1
 		if rikudo > 10:rikudo = rikudo + 3000
 		money = money + 5000
@@ -311,7 +311,6 @@ if $ARGS[0] = 'win':
 		'<center><img src="images/locations/shared/street/rapist_defeat.jpg"></center>'
 		'You defeat the '+iif(fightEnding = 8, 'rapist', 'thief')+' and empty his wallet as he lies unconscious on the street.'
 
-		fightEnding = 0
 		fightEnding = 0
 		scpopt = 0
 		if rikudo > 10:rikudo += 100

+ 1 - 1
locations/stat.qsrc

@@ -435,7 +435,7 @@ if minut >= 60:
 
 	pcs_willpower_feeder += willpowermax*2
 	pcs_willpwr += pcs_willpower_feeder/100
-	pcs_willpower_feeder -= pcs_willpower_feeder/100
+	pcs_willpower_feeder -= pcs_willpower_feeder mod 100
 	if pcs_willpwr > willpowermax: pcs_willpwr = willpowermax
 	if pcs_willpwr < 20: will_degrade += 1
 	if will_degrade >= 20: willpowermax -= 1 & will_degrade = 0