summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 26ed085..7a1c598 100644
--- a/rules.js
+++ b/rules.js
@@ -2951,12 +2951,19 @@ function goto_distribute_psp(who, psp, reason) {
function distribute_psl(where, delta) {
push_undo()
- log(`>${player_name(where)} PSL ${add_sign(delta)}`)
if (where === FLN) {
- game.fln_psl += delta
+ if (delta > 0) {
+ raise_fln_psl(delta)
+ } else {
+ lower_fln_psl(-delta)
+ }
} else {
- game.gov_psl += delta
+ if (delta > 0) {
+ raise_gov_psl(delta)
+ } else {
+ lower_gov_psl(-delta)
+ }
}
game.distribute.psp -= Math.abs(delta)
if (check_victory())