13 lines
473 B
GDScript
13 lines
473 B
GDScript
|
|
extends "res://world/owniverse/object_ledger.gd"
|
||
|
|
var checks: int = 0
|
||
|
|
var failures: int = 0
|
||
|
|
|
||
|
|
func round_object_allocations(target: Dictionary, affected: Variant = null) -> void:
|
||
|
|
var reference: Dictionary = target.duplicate(true)
|
||
|
|
super.round_object_allocations(reference)
|
||
|
|
super.round_object_allocations(target, affected)
|
||
|
|
checks += 1
|
||
|
|
if not E.eq(target, reference):
|
||
|
|
failures += 1
|
||
|
|
push_error("Selective rounding differs from full rounding")
|