Files
owniverse/data/owniverse_life_rule_loader.gd
T

26 lines
758 B
GDScript
Raw Normal View History

2026-10-03 11:06:52 +03:00
class_name OwniverseLifeRuleLoader
const E = preload("res://world/owniverse/math/exact.gd")
2026-10-03 11:06:52 +03:00
static func get_data() -> Dictionary:
var result: Dictionary = CSVLoader.load(DATA)
for row: Dictionary in result.values():
for field in ["span", "progress", "degradation"]:
row[field] = E.of(row[field])
return result
2026-10-03 11:06:52 +03:00
#region Data Items
const DATA := """
id|span|progress|degradation|next|fall
HP|5E+06|0.00025|0.0025|EON1|RP:1
EON1|1E+06|0.025|0.0025|EON2|HP:100^RP:1
EON2|1E+06|0.025|0.0025|EON3|EON1:1
EON3|1E+05|0.025|0.0025|EON4|EON2:1000^EON1:1
EON4|1E+05|0.025|0.0025|EON5|EON3:1000^EON1:1
EON5|5E+05|0.025|0.0025|C0.0|EON4:2000^EON1:1
C0.0|2E+03|0.0175|0.025|C0.1|EON5:1
C0.1|2E+03|0.0175|0.025|C0.2|C0.0:1
2026-10-03 11:06:52 +03:00
"""
#endregion