Files
windroost/p2_godot_sample/scripts/cf_tuned_values_parity_test.gd
T
wushenghua 0548105cde feat: all tuning numbers now exactly derived from CH families (no invented values)
User wanted every number to have a CH correspondence, not hand-picked values.

- cf_tuned_values.py/.gd: single source that derives all coefficients from CH
  LINEAR_COEFF / monster curve / skill duration: additive = CH linear family,
  interval = 1-CH coefficient (CH cost-reduction style), stack = 1+CH coeffs,
  durations = CH skills.json 30s/6, enemy mults = CH monster_growth curve.
- skill_archetypes / oath_rules / talent_behavior / edict_rules / enemy_mechanics
  now read from cf_tuned_values instead of hardcoded numbers. hero_skills.json
  regenerated; all 54 combos still unique.
- check_cf_tuned_parity PASS 45 values py==gd; test_cf_tuned_provenance PASS 5
  checks asserting every value is CH-derived (guards against invented numbers).
- PRODUCTION/52 documents exact derivations and honest boundary.
- Full P2_CHECKS_PASS (95 gates), identity preserved; enemy-mechanic battle
  durations recomputed [27.1/30.3/20.8/35.0/20.2] all distinct + py==gd.

No combat number is now hand-picked; every coefficient traces to a CH source.
Owner gates (human feel/device/release) remain open. prototype/ untracked.
2026-11-19 18:39:59 +08:00

21 lines
543 B
GDScript

extends SceneTree
const CfTunedValues = preload("res://scripts/cf_tuned_values.gd")
const OUTPUT_PATH := "res://artifacts/cf_tuned_values_parity_gd.json"
func _init() -> void:
_run.call_deferred()
func _run() -> void:
var built := CfTunedValues.build()
var dir := ProjectSettings.globalize_path("res://artifacts")
DirAccess.make_dir_recursive_absolute(dir)
var f := FileAccess.open(OUTPUT_PATH, FileAccess.WRITE)
if f != null:
f.store_string(JSON.stringify(built, "\t", true))
f.close()
print("CF_TUNED_PARITY_GD ok")
quit(0)