Add supply auto-purchase and preserve save recovery state
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
extends RefCounted
|
||||
|
||||
## A genuine pre-v14 fixture must have no player automatic purchase intent.
|
||||
static func strip_empty(data: Dictionary) -> void:
|
||||
assert(data.has(&"auto_purchase_plans"))
|
||||
var plans: Dictionary = data[&"auto_purchase_plans"]
|
||||
assert(plans[&"version"] == 1 and (plans[&"plans"] as Array).is_empty())
|
||||
data.erase(&"auto_purchase_plans")
|
||||
Reference in New Issue
Block a user