游戏王残局简化版

Annotation For 残局文料/副_容冗/失败得分.lua
Login

Annotation For 残局文料/副_容冗/失败得分.lua

Origin for each line in 残局文料/副_容冗/失败得分.lua from check-in 46bd1a8cd5:

46bd1a8cd5 2024-02-13  顽雨沉风: fun["一_失败得分"] = function() --{
46bd1a8cd5 2024-02-13  顽雨沉风:   str["失败得分表"] = {
46bd1a8cd5 2024-02-13  顽雨沉风:     [0] = "神龙之圣刻印",
46bd1a8cd5 2024-02-13  顽雨沉风:     [100] = "调和支援士",
46bd1a8cd5 2024-02-13  顽雨沉风:     [200] = "深渊的暗杀者",
46bd1a8cd5 2024-02-13  顽雨沉风:     [300] = "救援猫",
46bd1a8cd5 2024-02-13  顽雨沉风:     [400] = "注射天使 莉莉",
46bd1a8cd5 2024-02-13  顽雨沉风:     [500] = "不知火的隐者",
46bd1a8cd5 2024-02-13  顽雨沉风:     [600] = "影依猎鹰",
46bd1a8cd5 2024-02-13  顽雨沉风:     [700] = "铁兽战线 姬特",
46bd1a8cd5 2024-02-13  顽雨沉风:     [800] = "召唤僧",
46bd1a8cd5 2024-02-13  顽雨沉风:     [900] = "恩底弥翁的仆从",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1000] = "机壳工具 丑恶",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1100] = "欧尼斯特",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1200] = "次元吸引者",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1300] = "黑羽-疾风之盖尔",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1400] = "加农炮兵",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1500] = "教导的大神祗官",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1600] = "地中族导师",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1700] = "相剑师-莫邪",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1800] = "宝玉兽-青玉飞马",
46bd1a8cd5 2024-02-13  顽雨沉风:     [1900] = "命运英雄 血魔-D",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2000] = "流离的狮鹫骑手",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2100] = "电子龙",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2200] = "古遗物-死镰",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2300] = "能朋克 调狐",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2400] = "俱舍怒威族·芬里尔狼",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2500] = "黑魔术师",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2600] = "雅典娜",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2700] = "暗黑界的龙神 格拉法",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2800] = "魔导兽 刻耳柏洛斯尊主",
46bd1a8cd5 2024-02-13  顽雨沉风:     [2900] = "元素英雄 永生侠",
46bd1a8cd5 2024-02-13  顽雨沉风:     [3000] = "青眼白龙",
46bd1a8cd5 2024-02-13  顽雨沉风:   }
46bd1a8cd5 2024-02-13  顽雨沉风:   str["对方玩家的初始生命值"] = Duel.GetLP(1)
46bd1a8cd5 2024-02-13  顽雨沉风:   str["效果"] = Effect.GlobalEffect()
46bd1a8cd5 2024-02-13  顽雨沉风:   str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
46bd1a8cd5 2024-02-13  顽雨沉风:   str["效果"]:SetCode(EVENT_PHASE_START + PHASE_END)
46bd1a8cd5 2024-02-13  顽雨沉风:   function cache_1(effect_event, player_who_activate_the_effect) --{
46bd1a8cd5 2024-02-13  顽雨沉风:     cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
46bd1a8cd5 2024-02-13  顽雨沉风:     if cache_1 > 0 then --{
46bd1a8cd5 2024-02-13  顽雨沉风:       return
46bd1a8cd5 2024-02-13  顽雨沉风:     --}
46bd1a8cd5 2024-02-13  顽雨沉风:     else --{
46bd1a8cd5 2024-02-13  顽雨沉风:       cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
46bd1a8cd5 2024-02-13  顽雨沉风:       cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
46bd1a8cd5 2024-02-13  顽雨沉风:     end --}
46bd1a8cd5 2024-02-13  顽雨沉风:     if cache_1 > 3000 then --{
46bd1a8cd5 2024-02-13  顽雨沉风:     --}
46bd1a8cd5 2024-02-13  顽雨沉风:     else --{
46bd1a8cd5 2024-02-13  顽雨沉风:       Debug.ShowHint(
46bd1a8cd5 2024-02-13  顽雨沉风:         "这局,您的得分是 "
46bd1a8cd5 2024-02-13  顽雨沉风:           .. cache_1
46bd1a8cd5 2024-02-13  顽雨沉风:           .. " 分!\n处于「"
46bd1a8cd5 2024-02-13  顽雨沉风:           .. str["失败得分表"][cache_1]
46bd1a8cd5 2024-02-13  顽雨沉风:           .. "」级别!"
46bd1a8cd5 2024-02-13  顽雨沉风:       )
46bd1a8cd5 2024-02-13  顽雨沉风:     end --}
46bd1a8cd5 2024-02-13  顽雨沉风:     effect_event:Reset()
46bd1a8cd5 2024-02-13  顽雨沉风:   end --}
46bd1a8cd5 2024-02-13  顽雨沉风:   str["效果"]:SetOperation(cache_1)
46bd1a8cd5 2024-02-13  顽雨沉风:   Duel.RegisterEffect(str["效果"], 0)
46bd1a8cd5 2024-02-13  顽雨沉风: end --}