@@ -237,24 +237,24 @@ local anaptyxi = {
237237 return nil , nil
238238 end ,
239239 calc_scaling = function (self , card , other , current_scaling , current_scalar , args )
240- if not G .GAME .cryptid_base_scales then
241- G .GAME .cryptid_base_scales = {}
242- end
243- if not G .GAME .cryptid_base_scales [other .config .center .key ] then
244- G .GAME .cryptid_base_scales [other .config .center .key ] = {}
245- end
246- if not G .GAME .cryptid_base_scales [other .config .center .key ][args .scalar_value ] then
247- G .GAME .cryptid_base_scales [other .config .center .key ][args .scalar_value ] = current_scalar
240+ -- store original scaling rate
241+ if not other .ability .cry_scaling_info then
242+ other .ability .cry_scaling_info = {
243+ [args .scalar_value ] = current_scalar
244+ }
245+ elseif not other .ability .cry_scaling_info [args .scalar_value ] then
246+ other .ability .cry_scaling_info [args .scalar_value ] = current_scalar
248247 end
249- local true_base = G .GAME .cryptid_base_scales [other .config .center .key ][args .scalar_value ]
250- local orig_scale_scale = current_scaling
248+
249+ -- joker scaling stuff
250+ local original_scalar = other .ability .cry_scaling_info [args .scalar_value ]
251251 local new_scale = lenient_bignum (
252- to_big (true_base )
252+ to_big (original_scalar )
253253 * (
254254 (
255255 1
256256 + (
257- (to_big (orig_scale_scale ) / to_big (true_base ))
257+ (to_big (current_scaling ) / to_big (original_scalar ))
258258 ^ (to_big (1 ) / to_big (card .ability .extra .scale_base ))
259259 )
260260 ) ^ to_big (card .ability .extra .scale_base )
@@ -287,9 +287,9 @@ local anaptyxi = {
287287 end
288288 end
289289 args .scalar_table [args .scalar_value ] = new_scale
290- return {
291- message = localize (" k_upgrade_ex" ),
292- }
290+ return {
291+ message = localize (" k_upgrade_ex" ),
292+ }
293293 end ,
294294 entr_credits = {
295295 art = {" Lil. Mr. Slipstream" }
0 commit comments