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
|
||||
if ( update.data.deterioration >= 10) {
|
||||
update.data.deterioration = 0;
|
||||
let res = /\d+^/.exec(update.data.protection);
|
||||
let res = /\d+/.exec(update.data.protection);
|
||||
if ( res )
|
||||
update.data.protection = "1d"+update.data.protection;
|
||||
// if ( update.data.protection.toString().length == 1 )
|
||||
|
Loading…
Reference in New Issue
Block a user