laneya2

cave exploration game
git clone https://git.ce9e.org/laneya2.git

commit
bc0e389ec750a1e891408023dcd34118fdae6f01
parent
145488676d50132e4bfeecafce0d341198b6e3eb
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-10-08 20:44
switch armor and weapon in UI

Diffstat

M static/main.js 8 ++++----

1 files changed, 4 insertions, 4 deletions


diff --git a/static/main.js b/static/main.js

@@ -259,11 +259,11 @@ var screen = {
  259   259             }
  260   260         });
  261   261 
  262    -1         this.commitSpan(('Weapon'.substr(0, l1) + ':').padEnd(l1 + 2), -1);
  263    -1         this.commitSpan(game.weapon.padEnd(c - (l1 + 2)), 1);
  264    -1 
  265   262         this.commitSpan(('Armor'.substr(0, l1) + ':').padEnd(l1 + 2), -1);
  266    -1         this.commitSpan(game.armor, 3);
   -1   263         this.commitSpan(game.armor.padEnd(c - (l1 + 2)), 3);
   -1   264 
   -1   265         this.commitSpan(('Weapon'.substr(0, l1) + ':').padEnd(l1 + 2), -1);
   -1   266         this.commitSpan(game.weapon, 1);
  267   267         $pre.append('\n');
  268   268     },
  269   269