Skip to content

Commit bee7d59

Browse files
committed
cleanup: use existing key lists instead of recreating them in SMODS.upgrade_poker_hands
1 parent 893c1c6 commit bee7d59

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/utils.lua

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3255,17 +3255,10 @@ function SMODS.upgrade_poker_hands(args)
32553255
-- args.from
32563256
-- args.StatusText
32573257

3258-
local function get_keys(t)
3259-
local keys = {}
3260-
for k, _ in pairs(t) do
3261-
table.insert(keys, k)
3262-
end
3263-
return keys
3264-
end
32653258

3266-
args.hands = args.hands or get_keys(G.GAME.hands)
3259+
args.hands = args.hands or G.handlist
32673260
if type(args.hands) == 'string' then args.hands = {args.hands} end
3268-
args.parameters = args.parameters or get_keys(SMODS.Scoring_Parameters)
3261+
args.parameters = args.parameters or SMODS.Scoring_Parameter.obj_buffer
32693262
local instant = args.instant
32703263

32713264
if not args.func then

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "1.0.0~BETA-1421c-STEAMODDED"
1+
return "1.0.0~BETA-1423a-STEAMODDED"

0 commit comments

Comments
 (0)