8c1e3abceb 2024-02-12 顽雨沉风: local 字集库 = require("u8_to_a")
8c1e3abceb 2024-02-12 顽雨沉风: local 位算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_位算"))
5b9fb5e09f 2024-02-13 顽雨沉风: local s = {}
8c1e3abceb 2024-02-12 顽雨沉风: local TYPE_MONSTER = 0x1
8c1e3abceb 2024-02-12 顽雨沉风: local TYPE_SPELL = 0x2
8c1e3abceb 2024-02-12 顽雨沉风: local TYPE_TRAP = 0x4
8c1e3abceb 2024-02-12 顽雨沉风: local TYPE_EFFECT = 0x20
8c1e3abceb 2024-02-12 顽雨沉风: local TYPE_PENDULUM = 0x1000000
8c1e3abceb 2024-02-12 顽雨沉风: local 有效果卡的类排 = {
8c1e3abceb 2024-02-12 顽雨沉风: TYPE_SPELL
8c1e3abceb 2024-02-12 顽雨沉风: , TYPE_TRAP
8c1e3abceb 2024-02-12 顽雨沉风: , TYPE_EFFECT
8c1e3abceb 2024-02-12 顽雨沉风: }
8c1e3abceb 2024-02-12 顽雨沉风: local 无效果灵摆怪兽排 = {
8c1e3abceb 2024-02-12 顽雨沉风: 28363749 --火蛋白石头龙头领
8c1e3abceb 2024-02-12 顽雨沉风: , 19474136 --曼陀林草龙
8c1e3abceb 2024-02-12 顽雨沉风: , 17390179 --闪光之骑士
8c1e3abceb 2024-02-12 顽雨沉风: , 83980492 --铜锣龙
8c1e3abceb 2024-02-12 顽雨沉风: }
8c1e3abceb 2024-02-12 顽雨沉风: --~ 卡对
5b69db85ea 2024-02-13 顽雨沉风: function s.筛有效果卡(u1_0)
8c1e3abceb 2024-02-12 顽雨沉风: for o1 = 1, #有效果卡的类排 do
5b69db85ea 2024-02-13 顽雨沉风: if 位算库.位和(有效果卡的类排[o1], u1_0.type) == 0 then
8c1e3abceb 2024-02-12 顽雨沉风: else
5b69db85ea 2024-02-13 顽雨沉风: return u1_0
8c1e3abceb 2024-02-12 顽雨沉风: end
8c1e3abceb 2024-02-12 顽雨沉风: end
5b69db85ea 2024-02-13 顽雨沉风: if 位算库.位和(TYPE_PENDULUM, u1_0.type) == 0 then
8c1e3abceb 2024-02-12 顽雨沉风: else
5b69db85ea 2024-02-13 顽雨沉风: if 无效果灵摆怪兽排[u1_0.id] then
8c1e3abceb 2024-02-12 顽雨沉风: else
5b69db85ea 2024-02-13 顽雨沉风: return u1_0
8c1e3abceb 2024-02-12 顽雨沉风: end
8c1e3abceb 2024-02-12 顽雨沉风: end
8c1e3abceb 2024-02-12 顽雨沉风: end
8c1e3abceb 2024-02-12 顽雨沉风: --~ 卡对
5b69db85ea 2024-02-13 顽雨沉风: function s.筛怪兽卡(u1_0)
5b69db85ea 2024-02-13 顽雨沉风: if 位算库.位和(TYPE_MONSTER, u1_0.type) == 0 then
8c1e3abceb 2024-02-12 顽雨沉风: else
5b69db85ea 2024-02-13 顽雨沉风: return u1_0
8c1e3abceb 2024-02-12 顽雨沉风: end
8c1e3abceb 2024-02-12 顽雨沉风: end
8c1e3abceb 2024-02-12 顽雨沉风: --~ 卡对
5b69db85ea 2024-02-13 顽雨沉风: function s.筛攻击力(u1_0)
5b69db85ea 2024-02-13 顽雨沉风: return u1_0.atk
8c1e3abceb 2024-02-12 顽雨沉风: end
5b9fb5e09f 2024-02-13 顽雨沉风: return s