mirror of
https://github.com/RussellChamp/tpw-roller.git
synced 2026-10-28 00:22:36 +00:00
fix follower issue that allowed sheilds to infinitely stack
This commit is contained in:
1 parent
9d0d8ceed9
commit
db681e6217
1 file changed
+1
-1
@@ -243,7 +243,7 @@ const armors: Armor[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
function rollArmor(): Armor {
|
function rollArmor(): Armor {
|
||||||
let armor = sample(armors);
|
let armor = { ...sample(armors) };
|
||||||
if (random(1, 2) == 2) {
|
if (random(1, 2) == 2) {
|
||||||
armor.description += " and a shield";
|
armor.description += " and a shield";
|
||||||
armor.value += 1;
|
armor.value += 1;
|
||||||
|
|||||||
Reference in new issue
Block a user