修复未开启平民,身份标记还能选平民的bug

This commit is contained in:
lieren2023 2023-12-05 14:25:45 +08:00 committed by GitHub
parent 05ad271d49
commit 5b5c5a4963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 6 deletions

View File

@ -555,12 +555,22 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}
}
else{
return {
fan:'反',
zhong:'忠',
nei:'内',
commoner:'民',
cai:'猜',
if(get.config('enable_commoner')){
return {
fan:'反',
zhong:'忠',
nei:'内',
commoner:'民',
cai:'猜',
}
}
else{
return {
fan:'反',
zhong:'忠',
nei:'内',
cai:'猜',
}
}
}
},