parent
0a0fa7e023
commit
9a2bf07ab4
|
@ -8048,6 +8048,7 @@ export class Player extends HTMLDivElement {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
if ((this.hp > 2 || !this.isZhu && this.hp > 1) && this.hasSkillTag('respondSha', true, type, true)) {
|
if ((this.hp > 2 || !this.isZhu && this.hp > 1) && this.hasSkillTag('respondSha', true, type, true)) {
|
||||||
if (rvt === 'count') count++;
|
if (rvt === 'count') count++;
|
||||||
|
else if (rvt === 'odds') return 1;
|
||||||
else return true;
|
else return true;
|
||||||
}
|
}
|
||||||
if (get.itemtype(viewer) !== 'player') viewer = _status.event.player;
|
if (get.itemtype(viewer) !== 'player') viewer = _status.event.player;
|
||||||
|
@ -8067,17 +8068,18 @@ export class Player extends HTMLDivElement {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
count += cards.length;
|
count += cards.length;
|
||||||
if (count && rvt !== 'count') return true;
|
if (count && rvt !== 'count') return rvt === 'odds' ? 1 : true;
|
||||||
let hs = this.getCards('hs').filter(i => !cards.includes(i)).length;
|
let hs = this.getCards('hs').filter(i => !cards.includes(i)).length;
|
||||||
if (!hs) {
|
if (!hs) {
|
||||||
if (rvt === 'count') return count;
|
if (rvt === 'count') return count;
|
||||||
|
else if (rvt === 'odds') return 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (rvt === 'count') {
|
if (rvt === 'count') {
|
||||||
if (this.isPhaseUsing()) return count + hs / 4;
|
if (this.isPhaseUsing()) return count + hs / 4;
|
||||||
return count + hs / 4.8;
|
return count + hs / 4.8;
|
||||||
}
|
}
|
||||||
if (this.isPhaseUsing()) count += Math.pow(2 + hs, 2) / 40;
|
if (hs > 9 || this.isPhaseUsing()) count += Math.pow(2 + hs, 2) / 40;
|
||||||
else count += -1.5 * Math.log(1 - hs / 10);
|
else count += -1.5 * Math.log(1 - hs / 10);
|
||||||
if (rvt === 'odds') return Math.min(1, count);
|
if (rvt === 'odds') return Math.min(1, count);
|
||||||
return count > _status.event.getRand('mayHaveSha' + hs + this.playerid);
|
return count > _status.event.getRand('mayHaveSha' + hs + this.playerid);
|
||||||
|
@ -8091,6 +8093,7 @@ export class Player extends HTMLDivElement {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
if ((this.hp > 2 || !this.isZhu && this.hp > 1) && this.hasSkillTag('respondShan', true, type, true)) {
|
if ((this.hp > 2 || !this.isZhu && this.hp > 1) && this.hasSkillTag('respondShan', true, type, true)) {
|
||||||
if (rvt === 'count') count++;
|
if (rvt === 'count') count++;
|
||||||
|
else if (rvt === 'odds') return 1;
|
||||||
else return true;
|
else return true;
|
||||||
}
|
}
|
||||||
if (get.itemtype(viewer) !== 'player') viewer = _status.event.player;
|
if (get.itemtype(viewer) !== 'player') viewer = _status.event.player;
|
||||||
|
@ -8110,10 +8113,11 @@ export class Player extends HTMLDivElement {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
count += cards.length;
|
count += cards.length;
|
||||||
if (count && rvt !== 'count') return true;
|
if (count && rvt !== 'count') return rvt === 'odds' ? 1 : true;
|
||||||
let hs = this.getCards('hs').filter(i => !cards.includes(i)).length;
|
let hs = this.getCards('hs').filter(i => !cards.includes(i)).length;
|
||||||
if (!hs) {
|
if (!hs) {
|
||||||
if (rvt === 'count') return count;
|
if (rvt === 'count') return count;
|
||||||
|
else if (rvt === 'odds') return 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (rvt === 'count') {
|
if (rvt === 'count') {
|
||||||
|
|
Loading…
Reference in New Issue