Commit 7caf4020 authored by nanahira's avatar nanahira

Revert "Add Yellow Hints for Attr and Race"

This reverts commit cb51a624.
parent 35faddad
Pipeline #35940 passed with stages
in 48 seconds
...@@ -156,51 +156,6 @@ def compare_tags(guess_tags, answer_tags): ...@@ -156,51 +156,6 @@ def compare_tags(guess_tags, answer_tags):
cls = "tag-gray" cls = "tag-gray"
pills.append(f'<span class="tag {cls}">{sym}</span>') pills.append(f'<span class="tag {cls}">{sym}</span>')
return " ".join(pills) return " ".join(pills)
#同属圣王阵营或灵王阵营但属性没猜对则显示黄色
if key == "属性":
DominusI=["水","炎","暗"]
DominusP=["风","地","光"]
if ((val1 in DominusI and val2 in DominusI) or (val1 in DominusP and val2 in DominusP)) and val1!= val2:
cls="tag-yellow"
#官方全卡池中存在1个效果,其中猜的怪兽的种族与答案种族并列(例如,素材中写魔法师族·战士族,效果文中写兽族·兽战士族·鸟兽族)
if key == "种族":
CorrelatedRaces=[
["龙","鸟兽","雷"],
["兽","兽战士","鸟兽","昆虫","植物"],
["机械","幻想魔"],
["恶魔","幻想魔","兽"],
["魔法师","幻想魔","恶魔"],
["天使","恶魔","爬虫"],
["龙","植物"],
["战士","龙","魔法师"],
["炎","雷","恶魔"],
["鱼","海龙","水","雷"],
["龙","恐龙","海龙","幻龙"],
["念动力","幻龙"],
["昆虫","植物","爬虫类"],
["恶魔","不死"],
["兽","植物","天使"],
["龙","机械","电子界"],
["爬虫","恐龙"],
["机械","念动力","电子界"],
["战士","机械"],
["岩石","爬虫类"],
["爬虫类","海龙","鸟兽"],
["炎","水"],
["岩石","机械"],
["战士","魔法师","兽战士"],
["战士","兽","炎"],
["恐龙","海龙","雷"],
["机械","天使","恶魔"],
["机械","炎"],
["恐龙","岩石","不死"],
["龙","恶魔"]]
for CRace in CorrelatedRaces:
if val1 in CRace and val2 in CRace and val1!=val2:
cls="tag-yellow"
# 数值型字段:攻击、守备、等级、刻度 # 数值型字段:攻击、守备、等级、刻度
if isinstance(val1, numbers.Number): if isinstance(val1, numbers.Number):
diff = abs(val1 - val2) diff = abs(val1 - val2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment