Răsfoiți Sursa

[changed] willpower icon shows willpower and percentage left

julzor 5 ani în urmă
părinte
comite
04fca8e09b
1 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 6 6
      locations/stat_display.qsrc

+ 6 - 6
locations/stat_display.qsrc

@@ -289,16 +289,16 @@ if cheatStatusIcons = 0 or disable_show_icons = 0:
 !!{	this is commented out until the images have been added
 	willpower_percent = (100 * pcs_willpwr)/willpowermax
 	if willpower_percent > 60:
-		$stat_willpower_msg = 'You feel confident and in control. You still have <<willpower_percent>>% of your willpower left.'
-		$stat_willpower_tooltip = 'You have <<willpower_percent>>% of your willpower.'
+		$stat_willpower_msg = 'You feel confident and in control. You still have <<pcs_willpwr>> (<<willpower_percent>>%) of your willpower left.'
+		$stat_willpower_tooltip = 'You have <<pcs_willpwr>> (<<willpower_percent>>%) of your willpower.'
 		$statusIconBarTab += '<td><a href="exec:msg $stat_willpower_msg"><img title="<<$stat_willpower_tooltip>>" height = 54 src="images/system/icon/status_icons/willpower_high.png"></a></td>'
 	elseif willpower_percent > 30:
-		$stat_willpower_msg = 'You feel like you have less control over yourself than usual. You have <<willpower_percent>>% of your willpower left.'
-		$stat_willpower_tooltip = 'You have <<willpower_percent>>% of your willpower.'
+		$stat_willpower_msg = 'You feel like you have less control over yourself than usual. You have <<pcs_willpwr>> (<<willpower_percent>>%) of your willpower left.'
+		$stat_willpower_tooltip = 'You have <<pcs_willpwr>> (<<willpower_percent>>%) of your willpower.'
 		$statusIconBarTab += '<td><a href="exec:msg $stat_willpower_msg"><img title="<<$stat_willpower_tooltip>>" height = 54 src="images/system/icon/status_icons/willpower_med.png"></a></td>'
 	else
-		$stat_willpower_msg = 'In your current state, you could easily be pressured into doing things against your will. You have <<willpower_percent>>% of your willpower left.'
-		$stat_willpower_tooltip = 'You only have <<willpower_percent>>% of your willpower.'
+		$stat_willpower_msg = 'In your current state, you could easily be pressured into doing things against your will. You have <<pcs_willpwr>> (<<willpower_percent>>%) of your willpower left.'
+		$stat_willpower_tooltip = 'You only have <<pcs_willpwr>> (<<willpower_percent>>%) of your willpower.'
 		$statusIconBarTab += '<td><a href="exec:msg $stat_willpower_msg"><img title="<<$stat_willpower_tooltip>>" height = 54 src="images/system/icon/status_icons/willpower_low.png"></a></td>'
 	end
 }