Reddo 5 anni fa
parent
commit
5fd918f636
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/World/Classes/Action/ActionInventory.ts

+ 2 - 1
app/World/Classes/Action/ActionInventory.ts

@@ -25,6 +25,7 @@ class ActionInventory extends Action {
     public static async createButton (thing : Thing, resolve : (t : Thing) => void) {
         let p = document.createElement("p");
         p.classList.add("choice");
+        p.classList.add("small");
         let elements = await ((new Say(thing)).getPureElements());
         elements.forEach(ele => {
             p.appendChild(ele);
@@ -52,7 +53,7 @@ class ActionInventory extends Action {
                 Controls.KeyHandler.reset();
                 let say = new Say();
                 if (wielded.length > 0) {
-                    say.add(new SayBold("Wielded:"), Say.LINE_BREAK);
+                    say.add(new SayBold("Wielded:"), Say.PARAGRAPH_BREAK);
                     for (let i = 0; i < wielded.length; i++) {
                         say.add(await ActionInventory.createButton(wielded[i], resolve));
                     }