Files
TheTree_mock/tests/fixtures/pre_auto_purchase_runtime.gd
T

9 lines
353 B
GDScript

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")