Class KnockoutWeaponPlan

java.lang.Object
privbot.mechanics.KnockoutWeaponPlan

public final class KnockoutWeaponPlan extends Object
Frame-bound gear proposals for the KO-weapon decision. No equip is dispatched or assumed successful.
Since:
1.2.0
  • Method Details

    • plan

      public static KnockoutWeaponPlan.Plan plan(PvpFightHistory.View fight, KnockoutWeaponDecision.Decision decision, Set<Integer> koIds, GearSetup mainSetup, Boolean mainSwitchAllowed, PvpArbiter.Context arbiter)
      Bind a same-tick KO decision to exact server-verified weapon IDs and frame containers. A return-to-main proposal requires a nonempty worn setup with a different weapon in slot 3. Its pieces must all be obtainable; a partial or accepted equip is never considered a completed switch. Caller-supplied decision facts, including the special episode, attack timing, KO risk and confirmed fire, must describe this same observation. mainSwitchAllowed must be true only when no return switch is in flight or backed off; use a retained SwitchCheck and record accepted gear sends separately.