Skip to content

Commit

Permalink
Revert jinhe AI.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeFuLoDgu committed Sep 2, 2024
1 parent fa3e8e9 commit bf0be40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions card/zhulu.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,13 +718,18 @@ game.import("card", function () {
order: 9.5,
equipValue: function (card, player) {
if ((get.position(card?.cards?.[0]) == "e") && card?.cards?.[0]?.cardid) return 1+3*player.countCards('h');
if (_status.jinhe&&_status.jinhe[card.cardid]&&(_status.event.name=='discardPlayerCard'||_status.event.name=='chooseToDiscard'||_status.event.name=='chooseToUse')) return 1+3*player.countCards('h');
return 0;
},
value: function () {
return lib.card.jinhe.ai.equipValue.apply(this, arguments);
},
basic: {
equipValue: 5,
value: function(card,player,i) {
if (_status.jinhe&&_status.jinhe[card.cardid]&&(_status.event.name=='discardPlayerCard'||_status.event.name=='chooseToDiscard'||_status.event.name=='chooseToUse')) return 1+2*player.countCards('h');
return 0;
}
},
result: {
keepAI: true,
Expand Down

0 comments on commit bf0be40

Please sign in to comment.