クラス EnergyManager
Energy calculation follows the standard Genshin Impact particle mechanic:
Energy gained = count * baseValue * rangeMult * (1 + ER%)where:
baseValueis determined by the particle's element andParticleType(same-element vs. different-element values).rangeMultis1.0for the active character and0.6for off-field characters in a 4-member party.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static voiddistributeFlatEnergy(double amount, CombatSimulator sim) Distributes flat energy to all party members.static voiddistributeParticles(Element particleElement, double count, ParticleType type, CombatSimulator sim) Distributes elemental particles or orbs to every party member.static voidSchedules the standard KQM enemy particle drops as aTimerEventon the simulator.
-
コンストラクタの詳細
-
EnergyManager
public EnergyManager()
-
-
メソッドの詳細
-
distributeParticles
public static void distributeParticles(Element particleElement, double count, ParticleType type, CombatSimulator sim) Distributes elemental particles or orbs to every party member.For neutral (Physical / null element) particles the base value is
2.0for particles and6.0for orbs, irrespective of element matching. For elemental particles the base value is read fromParticleType.getValue(boolean):3.0same-element /1.0different-element for a PARTICLE, and9.0/3.0for an ORB.After distributing energy the simulator's
CombatSimulator.notifyParticle(model.type.Element, double)hook is called so passive listeners (e.g. Raiden passive) can react.- パラメータ:
particleElement- element of the particle;nullorElement.PHYSICALis treated as neutralcount- number of particles/orbs generatedtype-ParticleType.PARTICLEorParticleType.ORBsim- the running combat simulator
-
distributeFlatEnergy
Distributes flat energy to all party members.Flat energy bypasses the ER multiplier and the active/off-field range penalty; every character receives exactly
amountenergy.- パラメータ:
amount- flat energy to give each charactersim- the running combat simulator
-
scheduleKQMSEnemyParticles
Schedules the standard KQM enemy particle drops as aTimerEventon the simulator.KQM Standard: 3 Neutral Orbs per 90 s rotation (~1 Orb every 30 s). Scaled to a ~21 s window this equates to roughly 4.2 energy, approximated here as 2 Neutral Particles (2 × 2 energy = 4 energy) delivered at
T=10 s.- パラメータ:
sim- the simulator on which the event is registered
-