Windroost 风之精华 previously had NO DPS effect -- it only bought oaths. In CH, the equivalent Hero Soul grants +10% global DPS per point, the exponential layer that lets DPS track 1.55^level monster HP. Restored via cf_tuned_values (CH linear10 = 0.10), Python + GD mirror, identity preserved (essence=0 -> 1.0). This is layer 1 of restoring CH's growth engine (concept correspondence existed but numeric strength was flattened). GROWTH_PARITY 7, CF_TUNED_PARITY 58, P2_CHECKS_PASS 95. Next: apply CH monster HP curve to cycle_pacing so DPS and HP grow together rather than DPS alone.
67 lines
2.7 KiB
GDScript
67 lines
2.7 KiB
GDScript
class_name CfTunedValues
|
|
extends RefCounted
|
|
|
|
## GDScript mirror of tools/fullgame/cf_tuned_values.gd -- every Windroost
|
|
## tuning coefficient derived from a CH linear family / skill duration.
|
|
|
|
const CfFormulas = preload("res://scripts/cf_formulas.gd")
|
|
const C := CfFormulas.LINEAR_COEFF
|
|
# Growth coefficients as a compile-time constant (CH linear01=0.01 step multiples
|
|
# and linear5/linear10 families). Mirrors tools/fullgame/cf_tuned_values.GROWTH.
|
|
const ESSENCE_DPS_PER_POINT := 0.10 # CH Hero Soul: +10% DPS per point
|
|
const GROWTH := {
|
|
"talent_sig": 0.03, "global_roster": 0.02, "star_roster": 0.08,
|
|
"awakening_node": 0.05, "awakening_full": 0.10,
|
|
"relic_roster": 0.015, "relic_click": 0.01,
|
|
"oath_storm": 0.04, "oath_roster": 0.02,
|
|
"edict_roster": 0.03, "edict_sig": 0.03, "emblem_sig": 0.02,
|
|
}
|
|
|
|
|
|
static func coef(family: String) -> float:
|
|
return float(C[family])
|
|
|
|
|
|
static func reduction(family: String) -> float:
|
|
return snappedf(1.0 - float(C[family]), 0.0001)
|
|
|
|
|
|
static func stack(families: Array) -> float:
|
|
var s := 0.0
|
|
for f in families:
|
|
s += float(C[str(f)])
|
|
return snappedf(1.0 + s, 0.0001)
|
|
|
|
|
|
static func build() -> Dictionary:
|
|
var d30 := CfFormulas.skill_duration_scale(30.0)
|
|
var stun := snappedf(d30 * 0.3, 0.0001)
|
|
var skill := {
|
|
"single_strike": coef("linear100"), "pierce_dmg": coef("linear50"),
|
|
"pierce_debuff": coef("linear30"), "multi_hit": coef("linear30"),
|
|
"projectile": coef("linear100"), "chain": coef("linear50"),
|
|
"ground_aoe": coef("linear50"), "ground_chain": coef("linear30"),
|
|
"cone_aoe": coef("linear50"), "heal": coef("linear100"),
|
|
"shield": coef("linear100"), "buff": coef("linear30"),
|
|
"debuff": coef("linear30"), "slow": coef("linear30"),
|
|
"control_dmg": coef("linear30"), "execute_thr": coef("linear30"),
|
|
"execute_dmg": coef("linear30"), "summon": coef("linear50"),
|
|
"buff_duration": d30, "control_stun": stun, "debuff_duration": d30,
|
|
}
|
|
var oath := {
|
|
"attack": coef("linear25"), "crit": coef("linear50"), "element": coef("linear20"),
|
|
"execute": coef("linear30"), "weak": coef("linear30"), "shield": coef("linear30"),
|
|
"dr": coef("linear50"), "summon": coef("linear30"), "energy": coef("linear25"),
|
|
"cooldown": reduction("linear20"), "ultimate": coef("linear50"), "status": coef("linear30"),
|
|
"click": reduction("linear10"), "click_dmg": coef("linear15"), "burst": coef("linear30"),
|
|
"sig": coef("linear30"), "tempo": reduction("linear15"),
|
|
}
|
|
var st := stack(["linear30", "linear30"])
|
|
var talent := {
|
|
"armor_stack": st, "debuff_duration": st, "all_duration": st,
|
|
"poison_stack": st, "interval": reduction("linear25"), "energy": coef("linear20"),
|
|
}
|
|
return {"skill": skill, "oath": oath, "talent": talent, "growth": GROWTH,
|
|
"edict_interval": reduction("linear15"),
|
|
"essence_dps_per_point": ESSENCE_DPS_PER_POINT}
|