forked from libnoname/noname
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add an extension. 2. Merge pull request libnoname#2067, libnoname#2068, libnoname#2069 from PR-branch.
- Loading branch information
1 parent
c7d38d8
commit 5691fc1
Showing
5 changed files
with
143 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
game.import("extension",function(lib,game,ui,get,ai,_status){return {name:"补应变卡",content:function(config,pack){ | ||
},precontent:function(){ | ||
let load_cards = false; | ||
if (lib.config.cards.includes("yingbian")) { | ||
load_cards = true; | ||
lib.config.cards.remove("standard"); | ||
lib.config.cards.remove("extra"); | ||
game.saveConfig("cards", lib.config.cards); | ||
} | ||
if (!lib.config.connect_cards.includes("yingbian")) { | ||
load_cards = true; | ||
lib.config.connect_cards.add("standard"); | ||
lib.config.connect_cards.add("extra"); | ||
game.saveConfig("connect_cards", lib.config.connect_cards); | ||
} | ||
if (load_cards) { | ||
let add_deleted_yinbian_card_pile = { | ||
name:'add_deleted_yinbian_card_pile', | ||
connect:true, | ||
card:{ | ||
}, | ||
skill:{ | ||
}, | ||
translate:{ | ||
}, | ||
list:[], | ||
} | ||
add_deleted_yinbian_card_pile.list=[ | ||
["heart", 2, "huogong"], | ||
["heart", 3, "huogong"], | ||
["diamond", 12, "huogong"], | ||
["diamond", 1, "zhuque"], | ||
["club", 1, "baiyin"], | ||
["diamond", 12, "fangtian"], | ||
["heart", 7, "wuzhong"], | ||
["heart", 8, "wuzhong"], | ||
["heart", 9, "wuzhong"], | ||
["heart", 11, "wuzhong"], | ||
["club", 12, "jiedao"], | ||
["club", 13, "jiedao"], | ||
["spade", 2, "hanbing"], | ||
]; | ||
game.import('card',function(lib,game,ui,get,ai,_status){ | ||
return add_deleted_yinbian_card_pile; | ||
}); | ||
lib.translate['add_deleted_yinbian_card_pile_card_config']='补应变卡'; | ||
lib.config.all.cards.push('add_deleted_yinbian_card_pile'); | ||
if(!lib.config.cards.includes('add_deleted_yinbian_card_pile')) lib.config.cards.push('add_deleted_yinbian_card_pile'); | ||
} | ||
},help:{},config:{},package:{ | ||
character:{ | ||
character:{ | ||
}, | ||
translate:{ | ||
}, | ||
}, | ||
card:{ | ||
card:{ | ||
}, | ||
translate:{ | ||
}, | ||
list:[], | ||
}, | ||
skill:{ | ||
skill:{ | ||
}, | ||
translate:{ | ||
}, | ||
}, | ||
intro:"若应变卡牌包开启,补充应变篇卡牌包删除的卡牌(标准卡牌包、军争卡牌包。此扩展会关闭单人及联机模式的标准卡牌包和军争卡牌包,重启生效)。", | ||
author:"", | ||
diskURL:"", | ||
forumURL:"", | ||
version:"0.1", | ||
},files:{"character":[],"card":[],"skill":[]},editable:false}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters