Skip to content

Commit

Permalink
Gambler fix (#1780)
Browse files Browse the repository at this point in the history
Gambler Works
  • Loading branch information
SawJester authored Dec 11, 2024
1 parent c8efd7c commit 16559f3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
11 changes: 0 additions & 11 deletions Games/types/Mafia/roles/Independent/Astrologer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,5 @@ module.exports = class Astrologer extends Role {
this.alignment = "Independent";
this.winCount = "Village";
this.cards = ["VillageCore", "MakeTargetsInLove", "WinIfPairedLoversAlive"];

this.listeners = {
roleAssigned: function (player) {
if (player !== this.player) {
return;
}
this.player.queueAlert(
"As above, so below. Observe the motions of the planets and find a pair of lovers that will rebuild this wretched town after it falls."
);
},
};
}
};
12 changes: 0 additions & 12 deletions Games/types/Mafia/roles/Independent/Gambler.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,5 @@ module.exports = class Gambler extends Role {

this.alignment = "Independent";
this.cards = ["VillageCore", "ChallengeTarget", "WinWithTwoGambleWins"];

this.listeners = {
roleAssigned: function (player) {
if (player !== this.player) {
return;
}

this.player.queueAlert(
":dice6: Everything this Village does is based on chance. Show them the odds and prove that the house doesn't always win."
);
},
};
}
};
3 changes: 3 additions & 0 deletions Games/types/Mafia/roles/cards/ChallengeTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = class ChallengeTarget extends Card {
if (player !== this.player) {
return;
}
this.player.queueAlert(
":dice6: Everything this Village does is based on chance. Show them the odds and prove that the house doesn't always win."
);
this.data.meetingName = "Gamble with " + this.player.name;
},
};
Expand Down
11 changes: 11 additions & 0 deletions Games/types/Mafia/roles/cards/WinIfPairedLoversAlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ module.exports = class WinIfPairedLoversAlive extends Card {
constructor(role) {
super(role);

this.listeners = {
roleAssigned: function (player) {
if (player !== this.player) {
return;
}
this.player.queueAlert(
"As above, so below. Observe the motions of the planets and find a pair of lovers that will rebuild this wretched town after it falls."
);
},
};

this.winCheck = {
priority: PRIORITY_WIN_CHECK_DEFAULT,
againOnFinished: true,
Expand Down

0 comments on commit 16559f3

Please sign in to comment.