Fix détérioration armure
This commit is contained in:
parent
f2a99bc2f0
commit
8000ee4156
@ -2024,7 +2024,7 @@ export class RdDActor extends Actor {
|
|||||||
dmg = 0; // Reset it
|
dmg = 0; // Reset it
|
||||||
if ( update.data.deterioration >= 10) {
|
if ( update.data.deterioration >= 10) {
|
||||||
update.data.deterioration = 0;
|
update.data.deterioration = 0;
|
||||||
let res = /\d+^/.exec(update.data.protection);
|
let res = /\d+/.exec(update.data.protection);
|
||||||
if ( res )
|
if ( res )
|
||||||
update.data.protection = "1d"+update.data.protection;
|
update.data.protection = "1d"+update.data.protection;
|
||||||
// if ( update.data.protection.toString().length == 1 )
|
// if ( update.data.protection.toString().length == 1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user