游戏王残局简化版

Annotation For single_doc/副_容冗/失败得分.lua
Login

Annotation For single_doc/副_容冗/失败得分.lua

Origin for each line in single_doc/副_容冗/失败得分.lua from check-in 60c256f91b:

60c256f91b 2024-06-27    1: fun["一_失败得分"] = function() --{
60c256f91b 2024-06-27    2:   str["失败得分表"] = {
60c256f91b 2024-06-27    3:     [0] = "神龙之圣刻印",
60c256f91b 2024-06-27    4:     [100] = "调和支援士",
60c256f91b 2024-06-27    5:     [200] = "深渊的暗杀者",
60c256f91b 2024-06-27    6:     [300] = "救援猫",
60c256f91b 2024-06-27    7:     [400] = "注射天使 莉莉",
60c256f91b 2024-06-27    8:     [500] = "不知火的隐者",
60c256f91b 2024-06-27    9:     [600] = "影依猎鹰",
60c256f91b 2024-06-27   10:     [700] = "铁兽战线 姬特",
60c256f91b 2024-06-27   11:     [800] = "召唤僧",
60c256f91b 2024-06-27   12:     [900] = "恩底弥翁的仆从",
60c256f91b 2024-06-27   13:     [1000] = "机壳工具 丑恶",
60c256f91b 2024-06-27   14:     [1100] = "欧尼斯特",
60c256f91b 2024-06-27   15:     [1200] = "次元吸引者",
60c256f91b 2024-06-27   16:     [1300] = "黑羽-疾风之盖尔",
60c256f91b 2024-06-27   17:     [1400] = "加农炮兵",
60c256f91b 2024-06-27   18:     [1500] = "教导的大神祗官",
60c256f91b 2024-06-27   19:     [1600] = "地中族导师",
60c256f91b 2024-06-27   20:     [1700] = "相剑师-莫邪",
60c256f91b 2024-06-27   21:     [1800] = "宝玉兽-青玉飞马",
60c256f91b 2024-06-27   22:     [1900] = "命运英雄 血魔-D",
60c256f91b 2024-06-27   23:     [2000] = "流离的狮鹫骑手",
60c256f91b 2024-06-27   24:     [2100] = "电子龙",
60c256f91b 2024-06-27   25:     [2200] = "古遗物-死镰",
60c256f91b 2024-06-27   26:     [2300] = "能朋克 调狐",
60c256f91b 2024-06-27   27:     [2400] = "俱舍怒威族·芬里尔狼",
60c256f91b 2024-06-27   28:     [2500] = "黑魔术师",
60c256f91b 2024-06-27   29:     [2600] = "雅典娜",
60c256f91b 2024-06-27   30:     [2700] = "暗黑界的龙神 格拉法",
60c256f91b 2024-06-27   31:     [2800] = "魔导兽 刻耳柏洛斯尊主",
60c256f91b 2024-06-27   32:     [2900] = "元素英雄 永生侠",
60c256f91b 2024-06-27   33:     [3000] = "青眼白龙",
60c256f91b 2024-06-27   34:   }
60c256f91b 2024-06-27   35:   str["对方玩家的初始生命值"] = Duel.GetLP(1)
60c256f91b 2024-06-27   36:   str["效果"] = Effect.GlobalEffect()
60c256f91b 2024-06-27   37:   str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
60c256f91b 2024-06-27   38:   str["效果"]:SetCode(EVENT_PHASE_START + PHASE_END)
60c256f91b 2024-06-27   39:   function cache_1(effect_event, player_who_activate_the_effect) --{
60c256f91b 2024-06-27   40:     cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
60c256f91b 2024-06-27   41:     if cache_1 > 0 then --{
60c256f91b 2024-06-27   42:       return
60c256f91b 2024-06-27   43:     --}
60c256f91b 2024-06-27   44:     else --{
60c256f91b 2024-06-27   45:       cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
60c256f91b 2024-06-27   46:       cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
60c256f91b 2024-06-27   47:     end --}
60c256f91b 2024-06-27   48:     if cache_1 > 3000 then --{
60c256f91b 2024-06-27   49:     --}
60c256f91b 2024-06-27   50:     else --{
60c256f91b 2024-06-27   51:       Debug.ShowHint(
60c256f91b 2024-06-27   52:         "这局,您的得分是 "
60c256f91b 2024-06-27   53:           .. cache_1
60c256f91b 2024-06-27   54:           .. " 分!\n处于「"
60c256f91b 2024-06-27   55:           .. str["失败得分表"][cache_1]
60c256f91b 2024-06-27   56:           .. "」级别!"
60c256f91b 2024-06-27   57:       )
60c256f91b 2024-06-27   58:     end --}
60c256f91b 2024-06-27   59:     effect_event:Reset()
60c256f91b 2024-06-27   60:   end --}
60c256f91b 2024-06-27   61:   str["效果"]:SetOperation(cache_1)
60c256f91b 2024-06-27   62:   Duel.RegisterEffect(str["效果"], 0)
60c256f91b 2024-06-27   63: end --}