feat: add Jerry character with speech assets and fix seat order logic
- Add 12 new MP3 speech files for Jerry (intro, happy, upset, pick) - Update opponents.json to include Jerry's speech configuration - Fix HoldemLogic to exclude folded players from seat order calculation
This commit is contained in:
parent
a05d8b6c96
commit
0b2657b954
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -280,7 +280,30 @@
|
|||
"id": "jerry",
|
||||
"spriteIndex": 10,
|
||||
"name": "Jerry",
|
||||
"bio": "Well now yall know I want to play some them games!"
|
||||
"bio": "Well now yall know I want to play some them games!",
|
||||
"speech": {
|
||||
"intro": [
|
||||
"jerry-intro-01",
|
||||
"jerry-intro-02"
|
||||
],
|
||||
"happy": [
|
||||
"jerry-happy-01",
|
||||
"jerry-happy-02",
|
||||
"jerry-happy-03",
|
||||
"jerry-happy-04",
|
||||
"jerry-happy-05"
|
||||
],
|
||||
"upset": [
|
||||
"jerry-upset-01",
|
||||
"jerry-upset-02",
|
||||
"jerry-upset-03",
|
||||
"jerry-upset-04",
|
||||
"jerry-upset-05"
|
||||
],
|
||||
"pick": [
|
||||
"jerry-pick"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "natasha",
|
||||
|
|
|
|||
|
|
@ -371,7 +371,8 @@ function getSeatOrder(players, dealerSeat) {
|
|||
const order = [];
|
||||
for (let i = 1; i <= n; i++) {
|
||||
const seat = (dealerSeat + i) % n;
|
||||
if (!players[seat].eliminated) order.push(seat);
|
||||
const p = players[seat];
|
||||
if (!p.eliminated && !p.folded) order.push(seat);
|
||||
}
|
||||
return order;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue