# searph kit reference — grounded in live dumps (2026-11-27, Cornucopia BedWars, PlaceId 6872265039)

Sources: `searph/dumps/01-08*.luau` run via `node searph/dump.js` against the live client.
User account: goldtu1, level 56, 1866 games, kit **mage** (`PlayingAsKits=mage`).

## Kit classes (BedwarsKitMeta, 122 kits)
| class | count | role | examples |
|---|---|---|---|
| 0 | 35 | combat | agni, gun_blade, ice_queen, mage, nazar, scarab, spirit_assassin |
| 1 | 6 | defense | battery, bigman, cactus, shielder, tinker, warrior |
| 2 | 5 | builder/defender | jellyfish, trapper, vulcan |
| 3 | 12 | mobility | glacial_skater, harpoon, queen_bee, regent, spider_queen, styx |
| 4 | 8 | bruiser/utility | berserker, jailor, santa, smoke, sorcerer, yeti |
| 5 | 16 | economy | black_market_trader, merchant, metal_detector, mimic, steam_engineer, taliyah |
| 6 | 17 | support | axolotl, baker, nyoka, oasis, rebellion_leader, star |
| 7 | 12 | ranged | archer, falconer, flower_bee, frosty, ghost_catcher, ninja, oil_man, raven, spearman, spirit_catcher, spirit_summoner, triple_shot, wizard |
| 8 | 2 | event | skeleton, winter_lady |

## Mage (display name "Whim") — the user's kit
- kitClass 0 (combat), battlepassSeason6, difficulty 2.
- **Penalties:** -20% sword damage dealt, +10% damage taken from all sources.
- **No abilities registry entries** — power is items, not `AbilityController`.
- kitItems: `mage_spellbook` (firstSpawnOnly, keepOnDeath) and `wizard_stick`
  (innateItem, **disableSword=true** — replaces the sword entirely).
- Spellbook = `multiProjectileSource` with 4 spells, each fireDelaySec=0.7:
  `mage_spell_base`, `mage_spell_fire`, `mage_spell_ice`, `mage_spell_nature`.
  Ranged poke weapon; projectileType is a game function.

## Weapon damage (ItemMeta, attackSpeed 0.3 for all)
| item | damage |
|---|---|
| wizard_stick (mage) | 15 |
| wood_sword | 20 |
| stone_sword | 25 |
| iron_sword | 30 |
| diamond_sword | 42 |
| emerald_sword | 55 |

## Combat constants
- `CombatConstant.RAYCAST_SWORD_CHARACTER_DISTANCE = 14.4` (game's own sword hit ray)
- `CombatConstant.REGION_SWORD_CHARACTER_DISTANCE = 12.6`
- Engine `FightRange = 14` matches the raycast distance.

## Engine implications (wired into strategy.lua)
- `RushMinSwordDamage = 25` (stone-or-better). wizard_stick (15) never passes
  the gear gate — mage rushes only after `RushAfterSeconds` (150s).
- `MageKiteBonus = 0.10`: kitMage raises kite threshold from mode base
  (Solos 0.35 → 0.45).
- Kit reads: `Store.HasKit("mage")` / `Store.ActiveKits()` mirror the game's
  `isUsingKit` (PlayingAsKits attr + ExtraKit_<kit> attr, Fusion-safe).
- Mage combat: stick melee is weak (15 < wood 20) — engine keeps melee range
  fights but the kit bias is toward poke-and-retreat; spellbook spells are a
  future Hands action (needs projectile remote, not yet dumped).

## Ability controller (for kits WITH abilities; not used by mage)
- Flamework: `rbxts_include.node_modules.@flamework.core.out`.
- AbilityController metatable: `useAbility`, `canUseAbility`,
  `inputStateNeededToActivateAbility`, `getEnabledAbilities`,
  `setAbilityInputState`. cooldownController has `cooldownMap`.
- 209 abilities registered. Kit→ability wiring: kit.abilities = 
  `{abilityId=X, innate=true, triggerConfigOverride(table)}`, e.g.
  `elektra => ELECTRIC_DASH, rechargeTimeSeconds=10`.
- Wizard kit (class 7) owns WIZARD_MANA/2/3, LIGHTNING_STRIKE,
  LIGHTNING_STORM, CLOUD_LIGHTNING_STRIKE, METEOR_SUMMON,
  MENDING_CANOPY_STAFF_* (CHARGE_DISABLED/ENABLED, MANA_TIER_1/2/3,
  OVERCHARGE). NOT mage's — do not wire these to the user.

## Shop + generators (dumps 09-13, 2026-11-27)
- `TS.games.bedwars` children (25): bed-plating, bed-team-upgrade,
  bedwars-armor-set, bedwars-bows, bedwars-melees, bedwars-ore-generator-levels,
  bedwars-pickaxes, bedwars-swords, blocks, charge-shield, dodo-bird, draft,
  item-skin, items, kit, kit-skin, maps, one-for-all, shop, snake-shrine-buff,
  stateful-entity-skin, team-upgrade, weapons, winstreak-queue.
- **Diamond generator** (BWOreGenLevelSystem.DiamondLevelsData): tier 1-2
  cooldownSec=35 stack 5, tier 3-4 cooldownSec=32 stack 6, tier 5
  cooldownSec=30 stack 6.
- **Emerald generator**: tier 1 70s stack 3, tier 2 55s, tier 3 45s stack 4,
  tier 4 35s, tier 5 25s stack 5. LevelTimes (upgrade unlock): 0/300/600/900/
  1200s.
- Shop = Folder; `shop/bedwars-shop` BedwarsShop holds ShopItems, Pickaxes,
  Axes, getShopItem, getAdjustedShopPrice, getTeamWoolByColorHex. Categories:
  Armory, BlackMarket, Blocks, Combat, Halloween, Pirate, Potions, Random,
  Recommended, Resources, Seeds, Tools, Void.
- Per-kit shop overrides exist (46 modules): wizard-shop-override, berserker,
  defender, ember, ice-queen, lumen, taliyah, vanessa, warrior, farmer-cletus,
  davey… `woodWeaponDisabled` list includes **wizard** (plus barbarian, dasher,
  ember, frost_hammer_kit, gun_blade, ice_queen, lumen, summoner, tinker,
  void_knight) — those kits can't buy wood weapons. customMeleeKits/customArmorKits
  replace sword/armor for tinker, void_knight, bigman etc.
- Shop price/entry dump **landed** (dump 13, `searph/dumps/13-shop-items.json`):
  prices below are live server meta.

### Mage buy list (dump 13 prices, wired into strategy.lua)
| item | cost | note |
|---|---|---|
| wool_white | 8 iron ×16 (cap 48) | bridging/defense |
| stone_pickaxe | 20 iron | faster bed breaks |
| leather_chestplate | 50 iron | skipped once diamond bought |
| telepearl | 2 emerald | escape/reposition |
| wizard_staff_2 | 4 emerald | staff upgrade (mage's real weapon path) |
| wizard_staff_3 | 6 emerald | requires wizard_staff_2 |
| diamond_chestplate | 8 emerald | best armor |

Team upgrades (diamonds): TEAM_GENERATOR 4/8/12, ARMOR 4/8/20, BREAK_SPEED
3/6 — ids fired verbatim via RequestPurchaseTeamUpgrade.

### Buy remote (navigation.lua Actuator.Buy ground truth)
Fire `bedwars.Handler:Get("BedwarsPurchaseItem"):Fire("CallServerAsync",
{ shopItem = bedwars.Shop.getShopItem(item, player), shopId = siteId })`.
Guards: wallet ≥ price, price matches, item not disabled, not forge-locked.
Team upgrades: `Handler:Get("RequestPurchaseTeamUpgrade"):Fire(
"CallServerAsync", upgradeId)`.

### Shop sites (Observer.Sites ground truth)
- Item shops: `CollectionService:GetTagged("BedwarsItemShop")`, child
  merchant `desertMerchant`, **shopId = `npc:GetAttribute("Id")`**, stand at
  `PrimaryPart.Position + LookVector*7`.
- Upgrades: `GetTagged("TeamUpgradeShopkeeper")`, stand at
  `Position + LookVector*5`.

### Engine wiring (strategy.lua, live)
`ShopAtIron=40 / ShopAtGold=8 / ShopAtEmerald=2 / ShopAtDiamond=4` trip Shop
after the combat gates; `ShopTravelRange=8`. Evaluate → Decide → Travel to
`snapshot.shopSite.stand` (or `upgradeSite`) → Hands.Buy / Hands.Upgrade fires
the remotes; success marks `store.__bought[item]=true` (wool tops up to 48 by
inventory count instead). `snapshot.currency` counts iron/gold/emerald/diamond
stacks; `snapshot.generator` reads tagged `Generator` parts (2s throttle,
`store.__genCache`); sites scan throttled 0.5s via `store.__siteCache`;
`Actor.UpgradeTiers` reads team upgrade tiers from the bedwars store state
(pcall-guarded, defaults 0). Status() now reports sites/shopSite/upgradeSite/
upgradeTiers/bought.

## Match-state access (unresolved from MCP)
- `lplr:GetChildren()` = Backpack, leaderstats, PlayerGui, StarterGear —
  **no PlayerScripts** in this session, so the `PlayerScripts.TS.ui.store`
  route is dead from the executor. Engine uses attribute/workspace reads.
- Beds live on match islands only (lobby has 0 bed tags); `Folder:BedModels`
  and `Folder:BlockData` exist in workspace.
- vape loader NOT loaded in client: `getgenv().slopBedwars` absent. The Actor
  ships with the loader snippet in README; user runs it in the executor.
