From c88e7c0657fa8b29caeeab9d34355125d173d74e Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Mon, 20 Jan 2025 17:09:47 -0800 Subject: [PATCH] I really wish Lua had real classes rather than forcing you to assemble it yourself --- vacuum_gambit.p8 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index cc9a684..51682ee 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -1764,6 +1764,9 @@ rearm_mode = mknew{ bfm=1, crt_frm = 1, pos=-1, + init=function(this) + rearm_mode.shuffle(this) + end, } crt={-91,-166,-2641,-1441,-23041,23295,-20491,24570} @@ -1819,10 +1822,6 @@ function rearm_mode:pos_frac() return 0 end -function rearm_mode:init() - self:shuffle() -end - function rearm_mode:shuffle() -- these will be placeholders -- until the upgrade deck