commit af44d4dadc84d8f6a755f16c04a42de6496d6e4a
parent 9e60cb158fc2dbc3a2f24dd3d85bd672264043a5
Author: anon <anon@example.com>
Date: Sun, 25 Oct 2026 02:58:19 +0000
Support complete ordinary positive skill nanos
Diffstat:
11 files changed, 830 insertions(+), 39 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -611,6 +611,18 @@ introduction and starting-item gameplay remain open below.
health consumer. Cover both skill gates, profession/quality boundaries, final
HP clamps, failed writes/COMMIT, expiry/death, cold restore and observer
foundations after inspection/team snapshots. See [health buffs](docs/nano-health-buffs.md).
+- [x] Admit complete ordinary positive skill buffs through the shared timed
+ effect path: 210 additional programs and 209 original crystal uploaders.
+ Cover all original modifiers, learning/casting, costs, NCU, cancellation and
+ cold recovery; preserve trained values. Use native defaults for omitted
+ metadata and anchor held movement when RunSpeed changes. See
+ [skill nanos](docs/nano-skill-buffs.md) for source and verification boundaries.
+- [ ] Research remaining skill-program contracts: Can8 programs 29302/29312,
+ Minor Suppressor43370's different flags, Take The Shot32065's critical-hit
+ function, Trader transfers/wrangles and team targeting. Verify complete
+ effects, requirements, rejection, persistence and lifecycle before admission.
+ Establish acquisition for Shijima's Cloak31405; the decoded original catalog
+ has no ordinary LearnNano uploader for it.
- [ ] Research Blood Circle27803 and special Iron Circle42052 delivery.
Their flags and zero casting cost/timing do not qualify as ordinary casts;
Blood Circle also omits strain. Retain complete original contracts in
@@ -1087,9 +1099,9 @@ and unresolved indoor lifecycle are explicit in [flight](docs/vehicles.md#yalmah
vendor price rounding. Cover negative inputs, overlap/removal and the native
float boundaries; see [signed stats](docs/signed-stats.md).
- [ ] Extend signed-effect verification before admitting broader debuffs or
- skill nanos. Audit every transaction/cache/wire path when a final HP/nano
- maximum becomes negative, extreme negative attack ratings and damage/AC
- floors. Verify direct skill effect publication, persistence/restart and NPC
+ conditional/proc skill nanos. Audit every transaction/cache/wire path when a
+ final HP/nano maximum becomes negative, extreme negative attack ratings and
+ damage/AC floors. Verify direct skill effect publication, persistence/restart and NPC
lifecycle with the original program and proc rules above. Current admitted
equipment has no negative ability/skill modifiers; synthetic arithmetic
fixtures must not be described as canonical negative gear.
diff --git a/docs/nano-buffs.md b/docs/nano-buffs.md
@@ -1,7 +1,8 @@
# Temporary nano research for 14.9.1
-Ordinary ability and passive regeneration buffs share one timed-effect path.
-Complete-contract checks admit 29 original programs and their 29 crystals.
+Ordinary ability, health, skill and passive regeneration buffs share one
+timed-effect path. Complete-contract checks admit 239 original programs and
+238 original crystals; see [skill buffs](nano-skill-buffs.md) for the expansion.
Learning and casting remain separate operations; arbitrary nano functions are
not enabled by this family.
@@ -12,9 +13,12 @@ Flags0 values `0x80010000` or `0x10000`. Both carry BuffNano0x10000 and lack the
hostile/nonoverwrite flags used by the reviewed cast and cancellation paths.
These are two exact audited values, not a claim that arbitrary other flag bits
are harmless. Duration, NCU, strain, cost, range, attack and recharge
-must be positive finite values. Each OnUse0 effect is an unconditional Modify53045,
+must resolve to positive finite values, including original constructor defaults
+for omitted fields. Authored zero values remain zero. Each OnUse0 effect is an
+unconditional Modify53045,
target3, tick1/interval0, with two integer arguments and an implemented consumer.
-Positive MaxHealth1, ability16..21, HealDelta343 and NanoDelta364 modifiers qualify.
+Positive MaxHealth1, ability16..21, trained skills100..168, HealDelta343 and
+NanoDelta364 modifiers qualify.
Signed SkillLockModifier382 also has a verified consumer, but no original
nano uses it; its synthetic lifecycle fixtures remain separate from content.
@@ -22,7 +26,7 @@ The checker validates ordinary attack-weight dictionaries4/4 and getter-mode
maps6/27, plus action3 criteria22/36. Unknown metadata, additional effects,
other events, conditions or repetition reject the whole program. An ordinary
crystal requires header51005, one audited Flags0 value (`0x80400203`,
-`0x00400203` or `0x88400203`), Can30=`0x29`, Count26=1 and
+`0x00400203`, `0x88400203` or `0x08400203`), Can30=`0x29`, Count26=1 and
exactly one unconditional OnUse LearnNano53019, target2, for an admitted program.
Only its original authored quality is accepted; bulk TESTITEM uploads reject.
@@ -34,10 +38,12 @@ VisualProfession368 criteria are distinct IDs; both currently read the saved
profession because false-profession effects are not implemented. Unsupported
predicates fail closed, including inside OR expressions.
-The complete audit covers all4,366 decoded nanos and re-parses66 selected
-program/crystal payloads from the original ResourceDatabase. Raw records,
-hashes, exact RPN criteria and the 29-program admission boundary are in
-`local/maximum-resource-nano-research/catalog/`. Raw flags identify this bounded
+The catalog audit covers all 4,366 decoded nanos. The health-buff records and
+earlier 29-program boundary are retained in
+`local/maximum-resource-nano-research/catalog/`. The expanded skill audit
+re-parses 778 selected records from the original ResourceDatabase, retaining
+full fields and hashes in `local/skill-nano-research/defaults-audit/`.
+Raw flags identify this bounded
content class; they are not reinterpreted as evidence of historical death or
offline-clock rules.
diff --git a/docs/nano-learning.md b/docs/nano-learning.md
@@ -26,11 +26,14 @@ basic ability Boost crystals and QL 4 Augment Strength now share this upload
path. Their exact crystal/program IDs and qualities are tabulated there;
each uses its authored LearnNano function and requirements.
-Complete-contract admission now covers29 ordinary ability, health and regeneration crystals.
+Complete-contract admission covers 238 ordinary ability, health, skill and
+regeneration crystals for 239 programs. Shijima's Cloak 31405 has no original
+ordinary uploader in the decoded catalog; no replacement crystal is invented.
Both upload and casting use the shared postfix requirement evaluator, including
the authored BM/MM/PM/MC thresholds and real or visual profession predicates.
The full program, crystal and quality tables are in
-[temporary nanos](nano-buffs.md#complete-contract-admission).
+[temporary nanos](nano-buffs.md#complete-contract-admission) and
+[skill nanos](nano-skill-buffs.md).
The Soldier startup Body Boost crystal29092/QL1 uploads29091 through this
generic path. Its Unique flag variant matches the Doctor/Bureaucrat startup
diff --git a/docs/nano-skill-buffs.md b/docs/nano-skill-buffs.md
@@ -0,0 +1,143 @@
+# Ordinary skill buffs in 14.9.1
+
+The shared timed-buff path admits 210 additional original positive skill
+programs, covering 60 of the 69 trained skills. It retains every effect in each
+program, including mixed contracts such as Offensive Steamroller 29240:
+Melee, Ranged, Physical and Nano Initiative +133, and Fling Shot +30. This
+brings ordinary supported buffs to 239 programs and 238 crystal uploaders.
+
+The exact new program, crystal, authored quality, profession, modifiers, NCU,
+duration and native cost expectations are in
+[`ordinary-skill-nanos.json`](../server/testdata/ordinary-skill-nanos.json).
+The fixture is derived independently from fresh original resource records,
+not from the admission predicate. Shijima's Cloak 31405 has no original ordinary
+LearnNano uploader in the decoded catalog. Its cast test explicitly seeds a
+learned entry; the server does not invent an acquisition path.
+
+## Admission and defaults
+
+The ordinary contract remains one unconditional, one-shot Modify 53045 effect
+per function, with complete known metadata and authored requirements. All
+functions must qualify. New positive modifiers use skill IDs 100..168 through
+the existing signed effective-skill calculator. Negative skills, critical-hit
+functions, damage functions, conditional effects and unverified program flags
+remain outside this class. In particular, mixed unsupported programs do not
+grant their otherwise supported skill subset.
+
+The original NanoItem constructor `kkr.dll:10098600` installs defaults before
+the loader overlays authored stat pairs. The shared nano getter now preserves
+this distinction: an omitted stat gets its native default; explicit zero does
+not get replaced.
+
+| Stat | Omitted value |
+| --- | --- |
+| Duration 8 | 1,000 centiseconds |
+| NCU 54 | 1 |
+| Strain 75 | Program ID |
+| Recharge 210 | 200 centiseconds |
+| Range 287 | 20 metres |
+| Attack 294 | 200 centiseconds |
+| Cost 407 | 1, before the existing native cost calculation |
+
+Bio Met Proficiency 26364 omits attack time; Parry Expertise 27121 omits
+recharge. Instinctive Control 28669, Limbo Mastery 28894, Cut Red Tape 30064
+and Shijima's Cloak 31405 omit strain. These six complete programs require
+the constructor defaults. An audit found no otherwise qualifying positive
+skill program rejected solely for explicit zero attack/recharge, so admission
+has not been broadened to a new timing contract.
+
+Crystal flags also include the exact original startup variant `0x08400203`,
+already used by the explicitly supported Meta-Physicist crystal. This admits
+43379 and 43382 without accepting arbitrary flag combinations. Bulk TESTITEM
+uploads and Nanogiver remain rejected.
+
+## Consumers and persistence
+
+Effective skills include the contribution once without changing trained
+values. Existing requirement, weapon, armor, initiative, recovery and price
+calculators read these effective values. This does not establish that every
+game action using every skill has been implemented.
+
+Held movement uses RunSpeed without ability trickle, as the original client
+does. Applying, replacing, cancelling or expiring a RunSpeed effect anchors the
+previous movement segment before the new speed takes effect. Significant
+buff changes and crystal consumption commit immediately; ordinary movement
+continues to use periodic checkpoints.
+
+The existing NCU/strain, death-removal and offline-duration policies still
+apply. Historical exceptions, broader targeting rules and the open combat HP
+delivery problem remain tracked in TODO.md.
+
+## Source evidence
+
+Original `kkr.dll` SHA-256:
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+The independent audit and fresh 778-record comparison are retained under
+`local/skill-nano-research/defaults-audit/`. Constructor, authored overlay,
+virtual getter/setter and cast-controller evidence is retained under
+`local/skill-nano-research/zero-timing/`.
+
+REA evidence IDs:
+
+- Constructor and loader:
+ `ev_1da543c061b3555aec6605a47eea81f312f4b61eea5ba216be73be668c9e9b6c`.
+- Authored setter and cast phases:
+ `ev_523ede4c483d251b6e0088a68b3948cfd604077bf502c752feeae8fd8a7d2c62`.
+- Raw stat overlay and school occupancy:
+ `ev_980238248b7c96882c10887d7b7fceb56b705db2461e58ffa09e2b8fb69a99dd`.
+- NanoItem virtual table:
+ `ev_3dfdcf5f6387985702f5fa6247b81cf6dfc026d420f1cfcc9b2feb4fcca20190`.
+
+## Verification
+
+Public upload/cast/cancel tests cover all 210 new programs, exact complete
+modifiers across every trained skill, costs, NCU, duration and cold recovery.
+Separate tests isolate all seven omitted defaults, skill-buff requirements and
+RunSpeed application/expiry anchoring. Additional public-operation tests cover
+buff-assisted Briefcase equipping, cancellation with unchanged item identity,
+armor effectiveness and health clamping. Focused nano, signed-stat and armor
+regressions passed under the race detector in 205.419 seconds; `go vet` passed
+for all tracked Go packages.
+
+The complete tracked Go suite (`go test ./server/... ./tools/data/export_gamedata
+-count=1 -timeout=30m`) passed: server 662.096 seconds, game data 9.692 seconds.
+
+Two real WASM clients ran in headed Chromium with the GPU OpenGL
+renderer against the sole shared HTTPS preview. Ordinary native crystal use
+learned seven general skill programs, Computer Literacy Expertise, First Aid
+Expertise and Offensive Steamroller. The Meta-Physicist-only Symbol Helper and
+Mocham crystal attempts retained their crystals for Soldier characters.
+
+Native checks verified:
+
+- 1H Blunt proficiency +10 upgrades to expertise +20 with one 4-NCU effect.
+- Pistol Expertise changes cached attack rating from 9 to 29 with a worn
+ original Solar-Powered Pistol. Cancellation restores 9 through the native
+ modifier path; no additional attack-rating packet is needed.
+- Swiftness adds RunSpeed +10 to both clients' views and movement uses it.
+- BioMet Proficiency's omitted attack time produces the ordinary two-second
+ cast; Parry Expertise's omitted recharge completes without a stuck native
+ cast controller. The exact Go timer tests retain the original float rounding.
+- Offensive Steamroller applies all five skill modifiers. With First Aid
+ Expertise it fits exactly at 52/52 NCU and refreshes at capacity. Casting it
+ on the other character with insufficient room sends a rejection, preserving
+ the recipient's effects and the caster's nano.
+- Computer Literacy Expertise restores the already worn Dust Collector's
+ effectiveness for its owner: maximum HP 1,005 -> 1,027 and melee AC 900 -> 1,200, without
+ granting current HP. Cancellation restores the lower maxima/AC and retains
+ the exact worn instances.
+- A server restart and fresh client connections preserve learned program sets,
+ complete contributions, NCU, armor effectiveness and attack rating. Native
+ cancellation frees the corresponding NCU and retains all equipment.
+
+High skills, the QL300 NCU ear, Pre-Universe Storage Device, armor and pistol
+placement were explicit GM fixtures. Crystal upload, program selection,
+casting, cancellation and movement used the native UI. These representative
+native checks do not claim manual execution of all 210 programs. Screenshots,
+read-only native state, GPU identity, wire captures, database snapshots and
+verification scripts are retained under `local/skill-nano-smoke/`.
+
+Both owned browser contexts were closed. Cleanup removed the two test
+characters and eight remaining fixture items; foreign-key and integrity checks
+passed, and hashes confirmed every unrelated database row was unchanged. The
+sole shared HTTPS preview was restarted with Visitor8 retained.
diff --git a/server/nano_buffs.go b/server/nano_buffs.go
@@ -29,7 +29,7 @@ func statBuffNano(program uint32) bool {
}
// Ordinary timed buffs have finite duration, NCU, strain, range and casting costs.
for _, stat := range []uint32{8, 54, 75, 210, 287, 294, 407} {
- if value := itemStat(definition, stat); value == 0 || value >= 0x80000000 {
+ if value := nanoStat(program, stat); value == 0 || value >= 0x80000000 {
return false
}
}
@@ -87,7 +87,9 @@ func statBuffNano(program uint32) bool {
}
case 382:
default:
- return false
+ if stat < 100 || stat > 168 || value <= 0 {
+ return false
+ }
}
hasEffect = true
}
@@ -131,24 +133,22 @@ func (player *character) nanoBonus(stat uint32) int32 {
func (player *character) usedNCU() uint32 {
var used uint32
for _, effect := range player.activeNanos {
- used += itemStat(gamedata.NanoTemplates[effect.program], 54)
+ used += nanoStat(effect.program, 54)
}
return used
}
func (player *character) acceptsNano(program uint32) bool {
- definition := gamedata.NanoTemplates[program]
used := player.usedNCU()
for _, effect := range player.activeNanos {
- previous := gamedata.NanoTemplates[effect.program]
- if itemStat(previous, 75) == itemStat(definition, 75) {
- if itemStat(previous, 54) > itemStat(definition, 54) {
+ if nanoStat(effect.program, 75) == nanoStat(program, 75) {
+ if nanoStat(effect.program, 54) > nanoStat(program, 54) {
return false
}
- used -= itemStat(previous, 54)
+ used -= nanoStat(effect.program, 54)
}
}
- return used+itemStat(definition, 54) <= player.maximumNCU()
+ return used+nanoStat(program, 54) <= player.maximumNCU()
}
func activeNanoPackets(player *character, now time.Time) [][]byte {
@@ -249,8 +249,8 @@ func (server *server) removeNano_locked(player *character, index int, now time.T
}
func (server *server) finishResourceChange_locked(updates map[*worldClient][][]byte, player *character, previous character, now time.Time) {
- // A maximum-health change can change a wounded player's held movement speed.
- if client := server.clients[player.id]; client != nil && previous.maximumHealth() != player.maximumHealth() {
+ // Keep held movement at its previous speed until the modifier changed.
+ if client := server.clients[player.id]; client != nil && (previous.maximumHealth() != player.maximumHealth() || previous.nanoBonus(156) != player.nanoBonus(156)) {
player.position = predictedPosition_locked(&previous, client, now)
client.movementStarted = now
}
diff --git a/server/nano_casting.go b/server/nano_casting.go
@@ -17,6 +17,29 @@ type nanoCast struct {
cancelled bool
}
+func nanoStat(program, stat uint32) uint32 {
+ for _, value := range gamedata.NanoTemplates[program].Stats {
+ if value[0] == stat {
+ return value[1]
+ }
+ }
+
+ // kkr.dll NanoItem 10098600 installs defaults before loading authored pairs.
+ switch stat {
+ case 8:
+ return 1000
+ case 54, 407:
+ return 1
+ case 75:
+ return program
+ case 210, 294:
+ return 200
+ case 287:
+ return 20
+ }
+ return 0
+}
+
func characterActionPacket(id uint32, fields [5]uint32) []byte {
var body []byte
for _, value := range fields {
@@ -33,7 +56,7 @@ func nanoPointsPacket(player *character) []byte {
func nanoCost(program uint32) uint32 {
// Native default cost modifier 318 is 100; retain the x87 float32 constant.
- return uint32(float64(itemStat(gamedata.NanoTemplates[program], 407)*100) * float64(float32(0.01)))
+ return uint32(float64(nanoStat(program, 407)*100) * float64(float32(0.01)))
}
func (player *character) nanoCastDelay(program uint32) time.Duration {
@@ -44,7 +67,7 @@ func (player *character) nanoCastDelay(program uint32) time.Duration {
if initiative > 1200 {
reduction = float32(600 + float64(initiative-1200)*float64(float32(1.0/6)))
}
- delay := float32(float64(itemStat(gamedata.NanoTemplates[program], 294))*float64(float32(0.01)) -
+ delay := float32(float64(nanoStat(program, 294))*float64(float32(0.01)) -
float64(reduction)*float64(float32(0.01)) - float64(player.aggDef/100))
return time.Duration(float64(delay) * float64(time.Second))
}
@@ -93,7 +116,7 @@ func (server *server) nanoTarget_locked(player, target *character, client *world
}
first := predictedPosition_locked(player, client, now)
x, y, z := first[0]-second[0], first[1]-second[1], first[2]-second[2]
- distance := float32(itemStat(gamedata.NanoTemplates[program], 287))
+ distance := float32(nanoStat(program, 287))
return x*x+y*y+z*z <= distance*distance
}
@@ -207,7 +230,7 @@ func (server *server) advanceNanos(now time.Time) {
caster := *player
caster.nanoReserved = 0
- recharge := float64(itemStat(gamedata.NanoTemplates[program], 210)) * float64(float32(0.01))
+ recharge := float64(nanoStat(program, 210)) * float64(float32(0.01))
caster.nanoRechargeUntil = now.Add(time.Duration(recharge * float64(time.Second)))
victim := *target
if target == player {
@@ -221,13 +244,13 @@ func (server *server) advanceNanos(now time.Time) {
} else {
// A strain has one contribution; a refresh replaces its deadline and caster.
victim.activeNanos = slices.DeleteFunc(slices.Clone(victim.activeNanos), func(effect activeNano) bool {
- if itemStat(gamedata.NanoTemplates[effect.program], 75) != itemStat(gamedata.NanoTemplates[program], 75) {
+ if nanoStat(effect.program, 75) != nanoStat(program, 75) {
return false
}
removedHealthBonus = removedHealthBonus || nanoProgramBonus(effect.program, 1) != 0
return true
})
- duration := time.Duration(itemStat(gamedata.NanoTemplates[program], 8)) * 10 * time.Millisecond
+ duration := time.Duration(nanoStat(program, 8)) * 10 * time.Millisecond
victim.activeNanos = append(victim.activeNanos, activeNano{program: program, caster: player.id, remaining: duration, expiresAt: now.Add(duration)})
victim.health = min(victim.health, victim.maximumHealth())
}
@@ -243,7 +266,7 @@ func (server *server) advanceNanos(now time.Time) {
client.nanoCast = nil
if program != 29618 {
server.queueCombat_locked(updates, player, target, characterActionPacket(player.id, [5]uint32{107, 0, 0, 0, program}))
- server.queueCombat_locked(updates, target, target, characterActionPacket(target.id, [5]uint32{177, 53019, program, player.id, itemStat(gamedata.NanoTemplates[program], 8)}))
+ server.queueCombat_locked(updates, target, target, characterActionPacket(target.id, [5]uint32{177, 53019, program, player.id, nanoStat(program, 8)}))
server.finishResourceChange_locked(updates, target, previous, now)
if removedHealthBonus && target.health == previous.health {
// Native removal can clamp HP before adding the replacement or refresh.
diff --git a/server/nano_learning.go b/server/nano_learning.go
@@ -13,7 +13,7 @@ func statBuffCrystalProgram(template uint32) uint32 {
return 0
}
switch itemStat(definition, 0) {
- case 0x80400203, 0x88400203, 0x00400203:
+ case 0x80400203, 0x88400203, 0x00400203, 0x08400203:
default:
return 0
}
diff --git a/server/skill_nano_test.go b/server/skill_nano_test.go
@@ -0,0 +1,380 @@
+package main
+
+import (
+ "ao/server/gamedata"
+ _ "embed"
+ "encoding/binary"
+ "encoding/json"
+ "fmt"
+ "slices"
+ "testing"
+ "time"
+)
+
+//go:embed testdata/ordinary-skill-nanos.json
+var ordinarySkillNanoData []byte
+
+type ordinarySkillNanoFixture struct {
+ Program, Crystal, Quality, Profession uint32
+ Modifiers [][2]int32
+ NCU, Duration uint32
+ NanoCost uint32 `json:"nano_cost"`
+}
+
+func ordinarySkillNanoFixtures(t *testing.T) []ordinarySkillNanoFixture {
+ t.Helper()
+ var fixtures []ordinarySkillNanoFixture
+ if err := json.Unmarshal(ordinarySkillNanoData, &fixtures); err != nil {
+ t.Fatal(err)
+ }
+ return fixtures
+}
+
+func newSkillNanoWorld(t *testing.T) (*server, *combatTestConn) {
+ t.Helper()
+ world, conn := newStatBuffWorld(t)
+ player := world.characters[1]
+ for _, field := range player.stats.trainingStats() {
+ *field.value = 900
+ }
+ player.stats.Body.NanoPool, player.nano = 30000, 50000
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ // The original shoulder container adds five NCU to the fixture's 47-NCU ear.
+ if granted, err := world.grantItem_locked(player, 168658); err != nil || !granted {
+ t.Fatal(granted, err)
+ }
+ inventory := player.inventory
+ inventory.Items = slices.Clone(inventory.Items)
+ inventory.Items[1].Slot = 22
+ if err := world.saveInventory_locked(player, inventory); err != nil {
+ t.Fatal(err)
+ }
+ conn.packets = nil
+ return world, conn
+}
+
+func TestOrdinarySkillNanoOriginalProgramsCastRestoreAndCancel(t *testing.T) {
+ for _, fixture := range ordinarySkillNanoFixtures(t) {
+ t.Run(fmt.Sprint(fixture.Program), func(t *testing.T) {
+ world, conn := newSkillNanoWorld(t)
+ player, client := world.characters[1], world.clients[1]
+ player.profession = uint16(fixture.Profession)
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ if fixture.Crystal != 0 {
+ if granted, err := world.grantItem_locked(player, fixture.Crystal); err != nil || !granted {
+ t.Fatal(granted, err)
+ }
+ } else {
+ // This original program has no ordinary uploader; seed only its learned entry.
+ player.inventory.LearnedNanos = []uint32{fixture.Program}
+ if err := world.saveInventory_locked(player, player.inventory); err != nil {
+ t.Fatal(err)
+ }
+ }
+ trained := player.baseStats()
+ before := make(map[uint32]int32)
+ for _, field := range trained.trainingStats() {
+ before[field.stat], _ = player.effectiveStat(field.stat)
+ }
+
+ if fixture.Crystal != 0 {
+ if err := world.handleOwnedItemUse(client, backpackUseRequest(1, 64, 1)[20:]); err != nil {
+ t.Fatal(err)
+ }
+ if len(conn.packets) != 3 || binary.BigEndian.Uint32(conn.packets[1][37:41]) != fixture.Quality {
+ t.Fatal("original skill crystal was rejected or changed quality")
+ }
+ }
+ completed := castTestBuff(t, world, 1, 1, fixture.Program)
+ cold := newTestInventoryServer(t).characters[1]
+
+ if player.usedNCU() != fixture.NCU || cold.usedNCU() != fixture.NCU || player.nano != 50000-fixture.NanoCost || cold.nano != player.nano ||
+ player.baseStats() != trained || cold.baseStats() != trained || player.health != 20 || cold.health != 20 ||
+ len(player.activeNanos) != 1 || player.activeNanos[0].expiresAt.Sub(completed) != time.Duration(fixture.Duration)*10*time.Millisecond ||
+ !slices.Equal(cold.inventory.LearnedNanos, []uint32{fixture.Program}) || len(cold.inventory.Items) != 2 {
+ t.Fatal("skill buff changed trained values, lost its complete contract or failed cold recovery", player.nano, player.usedNCU())
+ }
+ for stat, base := range before {
+ want := base
+ for _, modifier := range fixture.Modifiers {
+ if uint32(modifier[0]) == stat {
+ want += modifier[1]
+ }
+ }
+ current, _ := player.effectiveStat(stat)
+ restored, _ := cold.effectiveStat(stat)
+ if current != want || restored != want {
+ t.Fatal("skill buff lost a modifier or changed an unrelated skill", stat, current, restored, want)
+ }
+ }
+ if err := world.handleNanoRemoval(client, characterActionPacket(1, [5]uint32{65, 0, 0, 53019, fixture.Program})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ cold = newTestInventoryServer(t).characters[1]
+ if player.usedNCU() != 0 || len(cold.activeNanos) != 0 || cold.usedNCU() != 0 {
+ t.Fatal("cancelled skill buff retained its NCU or durable effect")
+ }
+ for stat, base := range before {
+ current, _ := player.effectiveStat(stat)
+ restored, _ := cold.effectiveStat(stat)
+ if current != base || restored != base {
+ t.Fatal("skill cancellation retained a modifier", stat, current, restored, base)
+ }
+ }
+ })
+ }
+}
+
+func TestSkillNanoOmittedStatsUseOriginalConstructorDefaults(t *testing.T) {
+ for _, omitted := range []uint32{8, 54, 75, 210, 287, 294, 407} {
+ t.Run(fmt.Sprint(omitted), func(t *testing.T) {
+ world, _ := newSkillNanoWorld(t)
+ player, client := world.characters[1], world.clients[1]
+ player.stats.Abilities = characterAbilitiesStats{1, 1, 1, 1, 1, 1}
+ player.stats.Speed.NanoInitiative, player.aggDef = 0, 0
+ player.inventory.LearnedNanos = []uint32{26339, 26336}
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ if err := world.saveInventory_locked(player, player.inventory); err != nil {
+ t.Fatal(err)
+ }
+ // A synthetic omission isolates default loading from an authored zero.
+ original := gamedata.NanoTemplates[26339]
+ program := *original
+ program.Stats = slices.DeleteFunc(slices.Clone(original.Stats), func(stat [2]uint32) bool { return stat[0] == omitted })
+ gamedata.NanoTemplates[26339] = &program
+ t.Cleanup(func() { gamedata.NanoTemplates[26339] = original })
+ target := player
+ if omitted == 287 {
+ recipient := *player
+ recipient.id, recipient.position = 2, [3]float32{17, 0, 0}
+ recipient.inventory = playerInventory{}
+ world.characters[2], world.nextCharacter = &recipient, 2
+ world.clients[2] = &worldClient{id: 2, conn: &combatTestConn{}, ready: true, target: true}
+ if err := world.saveUser_locked(&recipient); err != nil {
+ t.Fatal(err)
+ }
+ target = &recipient
+ }
+
+ before := time.Now()
+ if err := world.handleNanoCast(client, characterActionPacket(1, [5]uint32{19, 50000, target.id, 53019, 26339})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ if client.nanoCast == nil {
+ t.Fatal("omitted native attribute was treated as zero")
+ }
+ deadline, after := client.nanoCast.readyAt, time.Now()
+ completed := deadline.Add(time.Nanosecond)
+ world.advanceNanos(completed)
+ cold := newTestInventoryServer(t).characters[target.id]
+
+ duration, ncu, debit, recharge := 30*time.Minute, uint32(2), uint32(24), 499999988*time.Nanosecond
+ if omitted == 8 {
+ duration = 10 * time.Second
+ }
+ if omitted == 54 {
+ ncu = 1
+ }
+ if omitted == 407 {
+ debit = 0
+ }
+ if omitted == 210 {
+ recharge = 1999999955 * time.Nanosecond
+ }
+ if deadline.Before(before.Add(2*time.Second)) || deadline.After(after.Add(2*time.Second)) ||
+ len(target.activeNanos) != 1 || target.activeNanos[0].expiresAt.Sub(completed) != duration || cold.activeNanos[0].remaining != duration ||
+ target.usedNCU() != ncu || cold.usedNCU() != ncu || player.nano != 50000-debit || player.nanoRechargeUntil.Sub(completed) != recharge {
+ t.Fatal("constructor default was lost in casting, duration, NCU, cost or recharge", player.nano, player.nanoRechargeUntil.Sub(completed))
+ }
+ if omitted == 75 {
+ player.nanoRechargeUntil = time.Time{}
+ castTestBuff(t, world, 1, 1, 26336)
+ if len(player.activeNanos) != 2 || player.usedNCU() != 6 || player.nanoBonus(102) != 30 {
+ t.Fatal("omitted strain did not default to the program identity")
+ }
+ }
+ })
+ }
+}
+
+func TestSkillNanoAnchorsMovingRecipientOnApplicationAndExpiry(t *testing.T) {
+ world, _ := newSkillNanoWorld(t)
+ player := world.characters[1]
+ player.inventory.LearnedNanos = []uint32{27172}
+ recipient := *player
+ recipient.id, recipient.name, recipient.running = 2, "Moving Recipient", true
+ recipient.inventory = playerInventory{}
+ recipient.stats.Speed.RunSpeed = 100
+ recipient.health = recipient.maximumHealth()
+ recipient.position, recipient.rotation = [3]float32{0, 0, 3}, [4]float32{0, 0, 0, 1}
+ world.characters[2], world.nextCharacter = &recipient, 2
+ client := &worldClient{id: 2, conn: &combatTestConn{}, ready: true, target: true, forward: 1, movementStarted: time.Now()}
+ world.clients[2] = client
+ if err := world.saveUser_locked(&recipient); err != nil {
+ t.Fatal(err)
+ }
+ if err := world.handleNanoCast(world.clients[1], characterActionPacket(1, [5]uint32{19, 50000, 2, 53019, 27172})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ at := world.clients[1].nanoCast.readyAt.Add(time.Nanosecond)
+ client.movementStarted = at.Add(-time.Second)
+
+ world.advanceNanos(at)
+ position := predictedPosition_locked(&recipient, client, at.Add(time.Second))
+
+ if client.movementStarted != at || recipient.position[2] < 7.499 || recipient.position[2] > 7.501 || position[2] < 12.049 || position[2] > 12.051 {
+ t.Fatal("RunSpeed buff repriced the previous segment or omitted the new speed", recipient.position, position)
+ }
+
+ // Expiry must retain the buffed speed for the preceding segment only.
+ expires := recipient.activeNanos[0].expiresAt
+ recipient.position = [3]float32{0, 0, 3}
+ client.movementStarted = expires.Add(-time.Second)
+ world.advanceNanos(expires)
+ position = predictedPosition_locked(&recipient, client, expires.Add(time.Second))
+ if client.movementStarted != expires || recipient.position[2] < 7.549 || recipient.position[2] > 7.551 || position[2] < 12.049 || position[2] > 12.051 ||
+ recipient.nanoBonus(156) != 0 || len(newTestInventoryServer(t).characters[2].activeNanos) != 0 {
+ t.Fatal("expired RunSpeed buff changed the previous segment or remained active", recipient.position, position)
+ }
+}
+
+func TestSkillNanoModifiersGateLearningAndCastingWithoutChangingTraining(t *testing.T) {
+ world, conn := newSkillNanoWorld(t)
+ player, client := world.characters[1], world.clients[1]
+ caster := *player
+ caster.id, caster.name = 2, "Skill Caster"
+ caster.inventory = playerInventory{LearnedNanos: []uint32{27137}}
+ world.characters[2], world.nextCharacter = &caster, 2
+ world.clients[2] = &worldClient{id: 2, conn: &combatTestConn{}, ready: true, target: true}
+ if err := world.saveUser_locked(&caster); err != nil {
+ t.Fatal(err)
+ }
+ if err := world.saveInventory_locked(&caster, caster.inventory); err != nil {
+ t.Fatal(err)
+ }
+ player.stats.Abilities = characterAbilitiesStats{10, 10, 10, 10, 10, 10}
+ player.stats.NanoAiding.PsychologicalModification = 45
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ if granted, err := world.grantItem_locked(player, 27262); err != nil || !granted {
+ t.Fatal(granted, err)
+ }
+
+ if err := world.handleOwnedItemUse(client, backpackUseRequest(1, 64, 1)[20:]); err != nil {
+ t.Fatal(err)
+ }
+ if len(player.inventory.LearnedNanos) != 0 || len(player.inventory.Items) != 3 {
+ t.Fatal("below-threshold upload consumed the crystal or granted its program")
+ }
+ castTestBuff(t, world, 2, 1, 27137)
+ if err := world.handleOwnedItemUse(client, backpackUseRequest(1, 64, 2)[20:]); err != nil {
+ t.Fatal(err)
+ }
+ castTestBuff(t, world, 1, 1, 27127)
+ if err := world.handleNanoRemoval(client, characterActionPacket(1, [5]uint32{65, 0, 0, 53019, 27137})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ player.nanoRechargeUntil = time.Time{}
+ before, packets := player.nano, len(conn.packets)
+ if err := world.handleNanoCast(client, characterActionPacket(1, [5]uint32{19, 50000, 1, 53019, 27127})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ cold := newTestInventoryServer(t).characters[1]
+
+ if player.stats.NanoAiding.PsychologicalModification != 45 || cold.stats.NanoAiding.PsychologicalModification != 45 ||
+ player.nanoBonus(129) != 0 || player.nanoBonus(112) != 20 || cold.nanoBonus(112) != 20 ||
+ !slices.Equal(cold.inventory.LearnedNanos, []uint32{27127}) || len(cold.inventory.Items) != 2 ||
+ client.nanoCast != nil || player.nano != before || len(conn.packets) != packets+1 || binary.BigEndian.Uint32(conn.packets[packets][29:33]) != 108 {
+ t.Fatal("skill buff leaked into training, lost its learned entry or allowed a cast after cancellation")
+ }
+}
+
+func TestSkillNanoEnablesWeaponWearAndCancellationPreservesTheInstance(t *testing.T) {
+ world, _ := newSkillNanoWorld(t)
+ player, client := world.characters[1], world.clients[1]
+ player.profession = 8
+ player.stats.Abilities = characterAbilitiesStats{1, 1, 1, 1, 1, 1}
+ player.stats.TradeRepair.Psychology = 280
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ for _, template := range []uint32{27271, 205736} {
+ if granted, err := world.grantItem_locked(player, template); err != nil || !granted {
+ t.Fatal(granted, err)
+ }
+ }
+ if err := world.handleInventory(client, inventoryMovePacket(1, 65, 6)[20:]); err != nil || client.equipment != nil {
+ t.Fatal("below-threshold weapon wear succeeded", err)
+ }
+
+ if err := world.handleOwnedItemUse(client, backpackUseRequest(1, 64, 1)[20:]); err != nil {
+ t.Fatal(err)
+ }
+ castTestBuff(t, world, 1, 1, 27135)
+ if err := world.handleInventory(client, inventoryMovePacket(1, 65, 6)[20:]); err != nil || client.equipment == nil {
+ t.Fatal("buffed weapon wear failed", err)
+ }
+ world.advanceEquipment(client.equipment.readyAt)
+ if player.attackRating() != 300 {
+ t.Fatal("weapon rating omitted the skill buff", player.attackRating())
+ }
+ if err := world.handleNanoRemoval(client, characterActionPacket(1, [5]uint32{65, 0, 0, 53019, 27135})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ cold := newTestInventoryServer(t).characters[1]
+
+ if player.attackRating() != 280 || cold.attackRating() != 280 || cold.stats.TradeRepair.Psychology != 280 ||
+ len(cold.inventory.Items) != 3 || cold.inventory.Items[2].ID != 4 || cold.inventory.Items[2].Slot != 6 ||
+ cold.inventory.Items[2].Template != 205736 || cold.inventory.Items[2].Quality != 100 || len(cold.activeNanos) != 0 {
+ t.Fatal("cancellation changed training or lost the equipped instance", cold.inventory)
+ }
+}
+
+func TestSkillNanoChangesArmorEffectivenessAndClampsHealthOnCancellation(t *testing.T) {
+ world, _ := newSkillNanoWorld(t)
+ player, client := world.characters[1], world.clients[1]
+ player.stats.Abilities = characterAbilitiesStats{1, 1, 1, 1, 1, 1}
+ player.stats.TradeRepair.ComputerLiteracy = 665
+ if granted, err := world.grantItem_locked(player, 200461); err != nil || !granted {
+ t.Fatal(granted, err)
+ }
+ // GM placement isolates effectiveness of an already worn original armor item.
+ inventory := player.inventory
+ inventory.Items = slices.Clone(inventory.Items)
+ inventory.Items[2].Slot = 19
+ inventory.LearnedNanos = []uint32{26425}
+ if err := world.saveInventory_locked(player, inventory); err != nil {
+ t.Fatal(err)
+ }
+ player.health = player.maximumHealth()
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ before, armor := player.maximumHealth(), player.equipmentBonus(90)
+
+ castTestBuff(t, world, 1, 1, 26425)
+ if player.maximumHealth() != before+22 || player.equipmentBonus(90) != armor+300 || player.health != before {
+ t.Fatal("skill buff did not restore armor effectiveness without granting HP", player.maximumHealth(), before, player.equipmentBonus(90), armor)
+ }
+ player.health = player.maximumHealth()
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ if err := world.handleNanoRemoval(client, characterActionPacket(1, [5]uint32{65, 0, 0, 53019, 26425})[20:]); err != nil {
+ t.Fatal(err)
+ }
+ cold := newTestInventoryServer(t).characters[1]
+
+ if player.maximumHealth() != before || player.health != before || cold.health != before || cold.maximumHealth() != before ||
+ player.equipmentBonus(90) != armor || cold.equipmentBonus(90) != armor || cold.stats.TradeRepair.ComputerLiteracy != 665 ||
+ len(cold.inventory.Items) != 3 || cold.inventory.Items[2].Slot != 19 || cold.inventory.Items[2].ID != 3 {
+ t.Fatal("cancellation retained effectiveness or lost armor ownership", cold.inventory)
+ }
+}
diff --git a/server/stat_buff_catalog_test.go b/server/stat_buff_catalog_test.go
@@ -41,6 +41,18 @@ func newStatBuffWorld(t *testing.T) (*server, *combatTestConn) {
func TestStatBuffCatalogAdmitsOnlyCompleteOrdinaryContracts(t *testing.T) {
var programs, crystals []uint32
+ expectedPrograms := []uint32{25988, 25989, 26342, 26355, 26356, 26357, 26358, 26359, 26360, 27085, 27086,
+ 27118, 27134, 27144, 27154, 27168, 27169, 28651, 28663, 29091, 29200, 29254, 29652, 30095, 95693, 95694, 95695, 95696, 95697}
+ expectedCrystals := []uint32{26206, 26207, 26469, 26482, 26483, 26484, 26485, 26486, 26487, 27216, 27217,
+ 27253, 27270, 27280, 27290, 27304, 27305, 28764, 28776, 29092, 29202, 29366, 29814, 30140, 95723, 95724, 95725, 95726, 95727}
+ for _, fixture := range ordinarySkillNanoFixtures(t) {
+ expectedPrograms = append(expectedPrograms, fixture.Program)
+ if fixture.Crystal != 0 {
+ expectedCrystals = append(expectedCrystals, fixture.Crystal)
+ }
+ }
+ slices.Sort(expectedPrograms)
+ slices.Sort(expectedCrystals)
for program := range gamedata.NanoTemplates {
if statBuffNano(program) {
@@ -56,12 +68,10 @@ func TestStatBuffCatalogAdmitsOnlyCompleteOrdinaryContracts(t *testing.T) {
slices.Sort(crystals)
// Exact IDs come from the independent complete-original-record catalog audit.
- if !slices.Equal(programs, []uint32{25988, 25989, 26342, 26355, 26356, 26357, 26358, 26359, 26360, 27085, 27086,
- 27118, 27134, 27144, 27154, 27168, 27169, 28651, 28663, 29091, 29200, 29254, 29652, 30095, 95693, 95694, 95695, 95696, 95697}) {
+ if len(programs) != 239 || !slices.Equal(programs, expectedPrograms) {
t.Fatal("buff admission differs from the complete effect/metadata audit", programs)
}
- if !slices.Equal(crystals, []uint32{26206, 26207, 26469, 26482, 26483, 26484, 26485, 26486, 26487, 27216, 27217,
- 27253, 27270, 27280, 27290, 27304, 27305, 28764, 28776, 29092, 29202, 29366, 29814, 30140, 95723, 95724, 95725, 95726, 95727}) {
+ if len(crystals) != 238 || !slices.Equal(crystals, expectedCrystals) {
t.Fatal("crystal admission differs from the complete upload audit", crystals)
}
}
@@ -252,7 +262,7 @@ func TestStatBuffCrystalAndCastEnforceAuthoredSkillAndProfessionCriteria(t *test
}
func TestStatBuffCastRejectsIncompleteOrSpecialContractsWithoutDebit(t *testing.T) {
- for _, scenario := range []string{"extra effect", "unsupported stat", "negative ability", "negative health", "conditional effect", "repeated effect", "interval",
+ for _, scenario := range []string{"extra effect", "unsupported stat", "negative ability", "negative health", "negative skill", "conditional effect", "repeated effect", "interval",
"wrong target", "unknown section", "wrong mode", "bad weights", "special flags", "zero duration", "missing effect", "wrong arguments"} {
t.Run(scenario, func(t *testing.T) {
original := gamedata.NanoTemplates[27144]
@@ -270,6 +280,8 @@ func TestStatBuffCastRejectsIncompleteOrSpecialContractsWithoutDebit(t *testing.
functions[0].Arguments[0].Integer, functions[0].Arguments[1].Integer = new(int32(16)), new(int32(-3))
case "negative health":
functions[0].Arguments[0].Integer, functions[0].Arguments[1].Integer = new(int32(1)), new(int32(-3))
+ case "negative skill":
+ functions[0].Arguments[0].Integer, functions[0].Arguments[1].Integer = new(int32(100)), new(int32(-3))
case "conditional effect":
functions[0].Requirements = []gamedata.ItemRequirement{{Stat: 54, Operator: 2, Value: 1}}
case "repeated effect":
diff --git a/server/testdata/ordinary-skill-nanos.json b/server/testdata/ordinary-skill-nanos.json
@@ -0,0 +1,212 @@
+[
+ {"program": 25984, "crystal": 26015, "quality": 63, "profession": 5, "modifiers": [[159, 50], [163, 50]], "ncu": 20, "duration": 90000, "nano_cost": 213},
+ {"program": 26107, "crystal": 26166, "quality": 76, "profession": 6, "modifiers": [[136, 80], [151, 20]], "ncu": 24, "duration": 180000, "nano_cost": 259},
+ {"program": 26237, "crystal": 26245, "quality": 43, "profession": 6, "modifiers": [[156, 100]], "ncu": 14, "duration": 360000, "nano_cost": 136},
+ {"program": 26336, "crystal": 26464, "quality": 10, "profession": 1, "modifiers": [[102, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26339, "crystal": 26461, "quality": 4, "profession": 1, "modifiers": [[102, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26343, "crystal": 26470, "quality": 10, "profession": 1, "modifiers": [[151, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26346, "crystal": 26473, "quality": 4, "profession": 1, "modifiers": [[151, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26350, "crystal": 26585, "quality": 10, "profession": 1, "modifiers": [[156, 20]], "ncu": 4, "duration": 120000, "nano_cost": 39},
+ {"program": 26351, "crystal": 26497, "quality": 4, "profession": 1, "modifiers": [[111, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26354, "crystal": 26481, "quality": 4, "profession": 1, "modifiers": [[116, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26361, "crystal": 26488, "quality": 10, "profession": 1, "modifiers": [[128, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26364, "crystal": 26491, "quality": 4, "profession": 1, "modifiers": [[128, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26367, "crystal": 26494, "quality": 10, "profession": 1, "modifiers": [[111, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26370, "crystal": 26478, "quality": 10, "profession": 1, "modifiers": [[116, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26374, "crystal": 26501, "quality": 4, "profession": 1, "modifiers": [[121, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26375, "crystal": 26502, "quality": 10, "profession": 1, "modifiers": [[142, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26378, "crystal": 26505, "quality": 4, "profession": 1, "modifiers": [[142, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26379, "crystal": 26506, "quality": 10, "profession": 1, "modifiers": [[165, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26380, "crystal": 26507, "quality": 4, "profession": 1, "modifiers": [[165, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26381, "crystal": 26508, "quality": 10, "profession": 1, "modifiers": [[148, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26384, "crystal": 26511, "quality": 4, "profession": 1, "modifiers": [[148, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26387, "crystal": 26514, "quality": 10, "profession": 1, "modifiers": [[163, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26388, "crystal": 26515, "quality": 4, "profession": 1, "modifiers": [[163, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26389, "crystal": 26516, "quality": 10, "profession": 1, "modifiers": [[137, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26390, "crystal": 26682, "quality": 4, "profession": 1, "modifiers": [[137, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26394, "crystal": 26498, "quality": 10, "profession": 1, "modifiers": [[121, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26395, "crystal": 26552, "quality": 4, "profession": 1, "modifiers": [[104, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26396, "crystal": 26523, "quality": 4, "profession": 1, "modifiers": [[161, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26397, "crystal": 26524, "quality": 10, "profession": 1, "modifiers": [[164, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26398, "crystal": 26525, "quality": 4, "profession": 1, "modifiers": [[164, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26407, "crystal": 26534, "quality": 10, "profession": 1, "modifiers": [[135, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26408, "crystal": 26535, "quality": 4, "profession": 1, "modifiers": [[135, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26420, "crystal": 26547, "quality": 10, "profession": 1, "modifiers": [[126, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26422, "crystal": 26549, "quality": 10, "profession": 1, "modifiers": [[104, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26425, "crystal": 26522, "quality": 10, "profession": 1, "modifiers": [[161, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26426, "crystal": 26467, "quality": 4, "profession": 1, "modifiers": [[106, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26428, "crystal": 26555, "quality": 10, "profession": 1, "modifiers": [[133, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26431, "crystal": 26558, "quality": 4, "profession": 1, "modifiers": [[133, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26432, "crystal": 26559, "quality": 10, "profession": 1, "modifiers": [[147, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26435, "crystal": 26562, "quality": 4, "profession": 1, "modifiers": [[147, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26437, "crystal": 26564, "quality": 10, "profession": 1, "modifiers": [[157, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26438, "crystal": 26565, "quality": 4, "profession": 1, "modifiers": [[157, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26441, "crystal": 26568, "quality": 10, "profession": 1, "modifiers": [[123, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26442, "crystal": 26569, "quality": 4, "profession": 1, "modifiers": [[123, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26443, "crystal": 26570, "quality": 10, "profession": 1, "modifiers": [[150, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26446, "crystal": 26573, "quality": 4, "profession": 1, "modifiers": [[150, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26447, "crystal": 26574, "quality": 10, "profession": 1, "modifiers": [[167, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26450, "crystal": 26577, "quality": 4, "profession": 1, "modifiers": [[167, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26451, "crystal": 26578, "quality": 10, "profession": 1, "modifiers": [[110, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26454, "crystal": 26581, "quality": 4, "profession": 1, "modifiers": [[110, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 26455, "crystal": 26582, "quality": 10, "profession": 1, "modifiers": [[106, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 26703, "crystal": 28743, "quality": 136, "profession": 6, "modifiers": [[124, 60], [123, 60]], "ncu": 42, "duration": 270000, "nano_cost": 487},
+ {"program": 26704, "crystal": 28744, "quality": 33, "profession": 6, "modifiers": [[123, 46]], "ncu": 11, "duration": 180000, "nano_cost": 118},
+ {"program": 26705, "crystal": 28752, "quality": 10, "profession": 6, "modifiers": [[156, 40]], "ncu": 4, "duration": 180000, "nano_cost": 42},
+ {"program": 27068, "crystal": 27198, "quality": 10, "profession": 1, "modifiers": [[103, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27071, "crystal": 27201, "quality": 4, "profession": 1, "modifiers": [[103, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27072, "crystal": 27202, "quality": 10, "profession": 1, "modifiers": [[107, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27075, "crystal": 27205, "quality": 4, "profession": 1, "modifiers": [[107, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27076, "crystal": 27206, "quality": 10, "profession": 1, "modifiers": [[105, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27079, "crystal": 27209, "quality": 4, "profession": 1, "modifiers": [[105, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27080, "crystal": 27265, "quality": 4, "profession": 1, "modifiers": [[112, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27081, "crystal": 27210, "quality": 10, "profession": 1, "modifiers": [[109, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27082, "crystal": 27213, "quality": 4, "profession": 1, "modifiers": [[109, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27087, "crystal": 27218, "quality": 10, "profession": 1, "modifiers": [[108, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27088, "crystal": 27221, "quality": 4, "profession": 1, "modifiers": [[108, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27090, "crystal": 27225, "quality": 10, "profession": 1, "modifiers": [[114, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27093, "crystal": 27228, "quality": 4, "profession": 1, "modifiers": [[114, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27094, "crystal": 27229, "quality": 10, "profession": 1, "modifiers": [[100, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27097, "crystal": 27232, "quality": 4, "profession": 1, "modifiers": [[100, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27098, "crystal": 27233, "quality": 10, "profession": 1, "modifiers": [[130, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27101, "crystal": 27236, "quality": 4, "profession": 1, "modifiers": [[130, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27102, "crystal": 27237, "quality": 10, "profession": 1, "modifiers": [[131, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27105, "crystal": 27240, "quality": 4, "profession": 1, "modifiers": [[131, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27106, "crystal": 27241, "quality": 10, "profession": 1, "modifiers": [[127, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27109, "crystal": 27244, "quality": 4, "profession": 1, "modifiers": [[127, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27110, "crystal": 27245, "quality": 10, "profession": 1, "modifiers": [[125, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27111, "crystal": 27246, "quality": 4, "profession": 1, "modifiers": [[125, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27115, "crystal": 27250, "quality": 10, "profession": 1, "modifiers": [[160, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27116, "crystal": 27251, "quality": 4, "profession": 1, "modifiers": [[160, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27121, "crystal": 27256, "quality": 10, "profession": 1, "modifiers": [[145, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27124, "crystal": 27259, "quality": 4, "profession": 1, "modifiers": [[145, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27125, "crystal": 27260, "quality": 10, "profession": 1, "modifiers": [[159, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27126, "crystal": 27261, "quality": 4, "profession": 1, "modifiers": [[159, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27127, "crystal": 27262, "quality": 10, "profession": 1, "modifiers": [[112, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27135, "crystal": 27271, "quality": 10, "profession": 1, "modifiers": [[162, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27136, "crystal": 27272, "quality": 4, "profession": 1, "modifiers": [[162, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27137, "crystal": 27273, "quality": 10, "profession": 1, "modifiers": [[129, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27140, "crystal": 27276, "quality": 4, "profession": 1, "modifiers": [[129, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27141, "crystal": 27277, "quality": 17, "profession": 1, "modifiers": [[156, 30]], "ncu": 6, "duration": 180000, "nano_cost": 54},
+ {"program": 27146, "crystal": 27282, "quality": 10, "profession": 1, "modifiers": [[113, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27149, "crystal": 27285, "quality": 4, "profession": 1, "modifiers": [[113, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27150, "crystal": 27286, "quality": 10, "profession": 1, "modifiers": [[143, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27153, "crystal": 27289, "quality": 4, "profession": 1, "modifiers": [[143, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27155, "crystal": 27291, "quality": 10, "profession": 1, "modifiers": [[122, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27158, "crystal": 27294, "quality": 4, "profession": 1, "modifiers": [[122, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27159, "crystal": 27295, "quality": 10, "profession": 1, "modifiers": [[115, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27162, "crystal": 27298, "quality": 4, "profession": 1, "modifiers": [[115, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27164, "crystal": 27300, "quality": 10, "profession": 1, "modifiers": [[146, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27167, "crystal": 27303, "quality": 4, "profession": 1, "modifiers": [[146, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27172, "crystal": 27308, "quality": 4, "profession": 1, "modifiers": [[156, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27173, "crystal": 27309, "quality": 10, "profession": 1, "modifiers": [[138, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27174, "crystal": 27310, "quality": 4, "profession": 1, "modifiers": [[138, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27175, "crystal": 27311, "quality": 10, "profession": 1, "modifiers": [[124, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27176, "crystal": 27312, "quality": 4, "profession": 1, "modifiers": [[124, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27177, "crystal": 27313, "quality": 10, "profession": 1, "modifiers": [[141, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27178, "crystal": 27314, "quality": 4, "profession": 1, "modifiers": [[141, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27190, "crystal": 27326, "quality": 10, "profession": 1, "modifiers": [[158, 20]], "ncu": 4, "duration": 180000, "nano_cost": 39},
+ {"program": 27191, "crystal": 27197, "quality": 4, "profession": 1, "modifiers": [[158, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 27707, "crystal": 27708, "quality": 4, "profession": 1, "modifiers": [[126, 10]], "ncu": 2, "duration": 180000, "nano_cost": 24},
+ {"program": 28603, "crystal": 28806, "quality": 90, "profession": 11, "modifiers": [[153, 80], [155, 80], [154, 80]], "ncu": 28, "duration": 180000, "nano_cost": 267},
+ {"program": 28657, "crystal": 28770, "quality": 14, "profession": 10, "modifiers": [[123, 15], [124, 10]], "ncu": 5, "duration": 180000, "nano_cost": 45},
+ {"program": 28669, "crystal": 28782, "quality": 90, "profession": 10, "modifiers": [[149, 85]], "ncu": 28, "duration": 270000, "nano_cost": 278},
+ {"program": 28671, "crystal": 28784, "quality": 99, "profession": 10, "modifiers": [[168, 92]], "ncu": 31, "duration": 270000, "nano_cost": 317},
+ {"program": 28674, "crystal": 28787, "quality": 33, "profession": 10, "modifiers": [[124, 35], [123, 20]], "ncu": 11, "duration": 180000, "nano_cost": 105},
+ {"program": 28675, "crystal": 28788, "quality": 119, "profession": 10, "modifiers": [[123, 80], [124, 80]], "ncu": 37, "duration": 270000, "nano_cost": 379},
+ {"program": 28862, "crystal": 28913, "quality": 60, "profession": 2, "modifiers": [[156, 70]], "ncu": 19, "duration": 270000, "nano_cost": 202},
+ {"program": 28870, "crystal": 28921, "quality": 33, "profession": 2, "modifiers": [[142, 45]], "ncu": 11, "duration": 180000, "nano_cost": 115},
+ {"program": 28872, "crystal": 28923, "quality": 37, "profession": 2, "modifiers": [[153, 50], [155, 50], [154, 50]], "ncu": 12, "duration": 180000, "nano_cost": 131},
+ {"program": 28875, "crystal": 28926, "quality": 96, "profession": 2, "modifiers": [[118, 93], [120, 93]], "ncu": 30, "duration": 300000, "nano_cost": 321},
+ {"program": 28878, "crystal": 28929, "quality": 83, "profession": 2, "modifiers": [[153, 85], [155, 85], [154, 85]], "ncu": 26, "duration": 270000, "nano_cost": 274},
+ {"program": 28894, "crystal": 28945, "quality": 17, "profession": 2, "modifiers": [[153, 30]], "ncu": 6, "duration": 360000, "nano_cost": 89},
+ {"program": 28895, "crystal": 28946, "quality": 50, "profession": 2, "modifiers": [[100, 60]], "ncu": 16, "duration": 270000, "nano_cost": 169},
+ {"program": 28903, "crystal": 28954, "quality": 136, "profession": 2, "modifiers": [[153, 120], [155, 120], [154, 120]], "ncu": 42, "duration": 270000, "nano_cost": 485},
+ {"program": 28904, "crystal": 28955, "quality": 146, "profession": 2, "modifiers": [[143, 50]], "ncu": 45, "duration": 90000, "nano_cost": 525},
+ {"program": 29100, "crystal": 29102, "quality": 33, "profession": 7, "modifiers": [[158, 40]], "ncu": 11, "duration": 180000, "nano_cost": 110},
+ {"program": 29101, "crystal": 29103, "quality": 33, "profession": 7, "modifiers": [[159, 40]], "ncu": 11, "duration": 180000, "nano_cost": 105},
+ {"program": 29113, "crystal": 29192, "quality": 10, "profession": 12, "modifiers": [[160, 20]], "ncu": 4, "duration": 180000, "nano_cost": 45},
+ {"program": 29153, "crystal": 29191, "quality": 1, "profession": 5, "modifiers": [[164, 20]], "ncu": 1, "duration": 360000, "nano_cost": 14},
+ {"program": 29188, "crystal": 29194, "quality": 1, "profession": 3, "modifiers": [[119, 12]], "ncu": 1, "duration": 180000, "nano_cost": 26},
+ {"program": 29189, "crystal": 29195, "quality": 20, "profession": 3, "modifiers": [[165, 32]], "ncu": 7, "duration": 180000, "nano_cost": 77},
+ {"program": 29220, "crystal": 29332, "quality": 50, "profession": 1, "modifiers": [[116, 60]], "ncu": 16, "duration": 270000, "nano_cost": 165},
+ {"program": 29221, "crystal": 29333, "quality": 27, "profession": 1, "modifiers": [[149, 43], [120, 43], [119, 43], [118, 43]], "ncu": 9, "duration": 180000, "nano_cost": 105},
+ {"program": 29230, "crystal": 29342, "quality": 63, "profession": 1, "modifiers": [[133, 70]], "ncu": 20, "duration": 270000, "nano_cost": 213},
+ {"program": 29240, "crystal": 29352, "quality": 156, "profession": 1, "modifiers": [[149, 133], [120, 133], [119, 133], [118, 133], [150, 30]], "ncu": 48, "duration": 360000, "nano_cost": 571},
+ {"program": 29246, "crystal": 29358, "quality": 24, "profession": 1, "modifiers": [[112, 40]], "ncu": 8, "duration": 180000, "nano_cost": 89},
+ {"program": 29247, "crystal": 29359, "quality": 43, "profession": 1, "modifiers": [[153, 55], [155, 55], [154, 55]], "ncu": 14, "duration": 240000, "nano_cost": 149},
+ {"program": 29248, "crystal": 29360, "quality": 17, "profession": 1, "modifiers": [[119, 28]], "ncu": 6, "duration": 180000, "nano_cost": 67},
+ {"program": 29250, "crystal": 29362, "quality": 37, "profession": 1, "modifiers": [[113, 50]], "ncu": 12, "duration": 180000, "nano_cost": 133},
+ {"program": 29251, "crystal": 29363, "quality": 126, "profession": 1, "modifiers": [[148, 110]], "ncu": 39, "duration": 270000, "nano_cost": 440},
+ {"program": 29272, "crystal": 29369, "quality": 50, "profession": 12, "modifiers": [[155, 60], [154, 60], [153, 60]], "ncu": 16, "duration": 180000, "nano_cost": 173},
+ {"program": 29275, "crystal": 29372, "quality": 37, "profession": 12, "modifiers": [[128, 50]], "ncu": 12, "duration": 270000, "nano_cost": 131},
+ {"program": 29294, "crystal": 29391, "quality": 43, "profession": 12, "modifiers": [[130, 50]], "ncu": 14, "duration": 270000, "nano_cost": 146},
+ {"program": 29295, "crystal": 29392, "quality": 40, "profession": 12, "modifiers": [[131, 50]], "ncu": 13, "duration": 270000, "nano_cost": 141},
+ {"program": 29296, "crystal": 29393, "quality": 50, "profession": 12, "modifiers": [[127, 50]], "ncu": 16, "duration": 270000, "nano_cost": 136},
+ {"program": 29299, "crystal": 29396, "quality": 165, "profession": 12, "modifiers": [[128, 140]], "ncu": 51, "duration": 360000, "nano_cost": 620},
+ {"program": 29300, "crystal": 29397, "quality": 165, "profession": 12, "modifiers": [[130, 140]], "ncu": 51, "duration": 360000, "nano_cost": 620},
+ {"program": 29301, "crystal": 29398, "quality": 162, "profession": 12, "modifiers": [[131, 140]], "ncu": 50, "duration": 360000, "nano_cost": 592},
+ {"program": 29303, "crystal": 29400, "quality": 169, "profession": 12, "modifiers": [[129, 140]], "ncu": 52, "duration": 360000, "nano_cost": 650},
+ {"program": 29304, "crystal": 29401, "quality": 165, "profession": 12, "modifiers": [[122, 140]], "ncu": 51, "duration": 360000, "nano_cost": 635},
+ {"program": 29315, "crystal": 29412, "quality": 43, "profession": 12, "modifiers": [[122, 50]], "ncu": 14, "duration": 270000, "nano_cost": 151},
+ {"program": 29327, "crystal": 29424, "quality": 93, "profession": 12, "modifiers": [[160, 92]], "ncu": 29, "duration": 180000, "nano_cost": 317},
+ {"program": 29630, "crystal": 29792, "quality": 76, "profession": 9, "modifiers": [[107, 87], [102, 87]], "ncu": 24, "duration": 270000, "nano_cost": 290},
+ {"program": 29641, "crystal": 29803, "quality": 60, "profession": 9, "modifiers": [[149, 72], [119, 72], [120, 72], [118, 72]], "ncu": 19, "duration": 180000, "nano_cost": 217},
+ {"program": 29644, "crystal": 29806, "quality": 30, "profession": 9, "modifiers": [[107, 46], [102, 46]], "ncu": 10, "duration": 180000, "nano_cost": 118},
+ {"program": 29649, "crystal": 29811, "quality": 113, "profession": 9, "modifiers": [[120, 107], [118, 107]], "ncu": 35, "duration": 270000, "nano_cost": 401},
+ {"program": 29762, "crystal": 29842, "quality": 139, "profession": 3, "modifiers": [[109, 120], [112, 120]], "ncu": 43, "duration": 270000, "nano_cost": 753},
+ {"program": 29772, "crystal": 29852, "quality": 53, "profession": 3, "modifiers": [[163, 62], [159, 62]], "ncu": 17, "duration": 90000, "nano_cost": 180},
+ {"program": 29778, "crystal": 29858, "quality": 40, "profession": 3, "modifiers": [[119, 52]], "ncu": 13, "duration": 180000, "nano_cost": 141},
+ {"program": 29779, "crystal": 29859, "quality": 129, "profession": 3, "modifiers": [[119, 114]], "ncu": 40, "duration": 270000, "nano_cost": 445},
+ {"program": 29785, "crystal": 29865, "quality": 73, "profession": 3, "modifiers": [[135, 79]], "ncu": 23, "duration": 90000, "nano_cost": 247},
+ {"program": 30057, "crystal": 30102, "quality": 43, "profession": 8, "modifiers": [[162, 50]], "ncu": 14, "duration": 180000, "nano_cost": 131},
+ {"program": 30064, "crystal": 30109, "quality": 159, "profession": 8, "modifiers": [[149, 30], [119, 30], [120, 30], [118, 30]], "ncu": 49, "duration": 180000, "nano_cost": 39},
+ {"program": 30074, "crystal": 30119, "quality": 57, "profession": 8, "modifiers": [[164, 86]], "ncu": 18, "duration": 90000, "nano_cost": 176},
+ {"program": 30077, "crystal": 30122, "quality": 14, "profession": 8, "modifiers": [[112, 20]], "ncu": 5, "duration": 180000, "nano_cost": 48},
+ {"program": 30707, "crystal": 30758, "quality": 27, "profession": 7, "modifiers": [[157, 40]], "ncu": 9, "duration": 180000, "nano_cost": 89},
+ {"program": 30708, "crystal": 30759, "quality": 30, "profession": 7, "modifiers": [[125, 40]], "ncu": 10, "duration": 180000, "nano_cost": 96},
+ {"program": 30724, "crystal": 30775, "quality": 80, "profession": 7, "modifiers": [[126, 80]], "ncu": 25, "duration": 180000, "nano_cost": 236},
+ {"program": 30725, "crystal": 30776, "quality": 80, "profession": 7, "modifiers": [[157, 80]], "ncu": 25, "duration": 180000, "nano_cost": 244},
+ {"program": 30726, "crystal": 30777, "quality": 83, "profession": 7, "modifiers": [[125, 80]], "ncu": 26, "duration": 180000, "nano_cost": 251},
+ {"program": 30727, "crystal": 30778, "quality": 86, "profession": 7, "modifiers": [[159, 80]], "ncu": 27, "duration": 180000, "nano_cost": 259},
+ {"program": 30728, "crystal": 30779, "quality": 86, "profession": 7, "modifiers": [[158, 80]], "ncu": 27, "duration": 180000, "nano_cost": 267},
+ {"program": 30734, "crystal": 30785, "quality": 152, "profession": 7, "modifiers": [[126, 125]], "ncu": 47, "duration": 180000, "nano_cost": 503},
+ {"program": 30735, "crystal": 30786, "quality": 152, "profession": 7, "modifiers": [[157, 125]], "ncu": 47, "duration": 180000, "nano_cost": 507},
+ {"program": 30736, "crystal": 30787, "quality": 152, "profession": 7, "modifiers": [[125, 125]], "ncu": 47, "duration": 180000, "nano_cost": 511},
+ {"program": 30737, "crystal": 30788, "quality": 156, "profession": 7, "modifiers": [[159, 125]], "ncu": 48, "duration": 180000, "nano_cost": 517},
+ {"program": 30738, "crystal": 30789, "quality": 156, "profession": 7, "modifiers": [[158, 125]], "ncu": 48, "duration": 180000, "nano_cost": 521},
+ {"program": 30745, "crystal": 30796, "quality": 139, "profession": 7, "modifiers": [[153, 110], [154, 110], [155, 110]], "ncu": 43, "duration": 180000, "nano_cost": 440},
+ {"program": 30753, "crystal": 30804, "quality": 24, "profession": 7, "modifiers": [[126, 40]], "ncu": 8, "duration": 180000, "nano_cost": 83},
+ {"program": 31380, "crystal": 31415, "quality": 116, "profession": 4, "modifiers": [[136, 107]], "ncu": 36, "duration": 270000, "nano_cost": 401},
+ {"program": 31385, "crystal": 31420, "quality": 14, "profession": 4, "modifiers": [[165, 23], [135, 23], [136, 23]], "ncu": 5, "duration": 90000, "nano_cost": 54},
+ {"program": 31387, "crystal": 31422, "quality": 27, "profession": 4, "modifiers": [[164, 40]], "ncu": 9, "duration": 180000, "nano_cost": 99},
+ {"program": 31390, "crystal": 31425, "quality": 152, "profession": 4, "modifiers": [[165, 130], [135, 130], [136, 130]], "ncu": 47, "duration": 180000, "nano_cost": 149},
+ {"program": 31405, "crystal": 0, "quality": 0, "profession": 4, "modifiers": [[164, 70]], "ncu": 27, "duration": 180000, "nano_cost": 104},
+ {"program": 31406, "crystal": 31441, "quality": 70, "profession": 4, "modifiers": [[165, 79], [135, 79], [136, 79]], "ncu": 22, "duration": 90000, "nano_cost": 236},
+ {"program": 31409, "crystal": 31443, "quality": 57, "profession": 4, "modifiers": [[146, 64]], "ncu": 18, "duration": 180000, "nano_cost": 187},
+ {"program": 32062, "crystal": 32103, "quality": 20, "profession": 5, "modifiers": [[164, 63]], "ncu": 7, "duration": 270000, "nano_cost": 107},
+ {"program": 32064, "crystal": 32105, "quality": 43, "profession": 5, "modifiers": [[113, 50], [151, 15]], "ncu": 14, "duration": 270000, "nano_cost": 146},
+ {"program": 32067, "crystal": 32108, "quality": 136, "profession": 5, "modifiers": [[146, 30], [113, 120]], "ncu": 42, "duration": 360000, "nano_cost": 485},
+ {"program": 43369, "crystal": 43382, "quality": 1, "profession": 2, "modifiers": [[120, 8], [100, 12]], "ncu": 1, "duration": 360000, "nano_cost": 23},
+ {"program": 43371, "crystal": 43379, "quality": 1, "profession": 9, "modifiers": [[102, 14]], "ncu": 1, "duration": 360000, "nano_cost": 19},
+ {"program": 93125, "crystal": 93140, "quality": 17, "profession": 4, "modifiers": [[155, 2], [154, 2], [153, 2], [156, 140]], "ncu": 6, "duration": 360000, "nano_cost": 18},
+ {"program": 93126, "crystal": 93133, "quality": 136, "profession": 4, "modifiers": [[155, 70], [154, 70], [153, 70], [156, 620]], "ncu": 42, "duration": 420000, "nano_cost": 350},
+ {"program": 93127, "crystal": 93134, "quality": 113, "profession": 4, "modifiers": [[153, 61], [154, 61], [155, 61], [156, 450]], "ncu": 35, "duration": 400000, "nano_cost": 283},
+ {"program": 93128, "crystal": 93139, "quality": 83, "profession": 4, "modifiers": [[155, 37], [154, 37], [153, 37], [156, 390]], "ncu": 26, "duration": 360000, "nano_cost": 166},
+ {"program": 93129, "crystal": 93137, "quality": 63, "profession": 4, "modifiers": [[155, 25], [154, 25], [153, 25], [156, 310]], "ncu": 20, "duration": 360000, "nano_cost": 120},
+ {"program": 93130, "crystal": 93138, "quality": 43, "profession": 4, "modifiers": [[155, 16], [154, 16], [153, 16], [156, 260]], "ncu": 14, "duration": 360000, "nano_cost": 84},
+ {"program": 93131, "crystal": 93136, "quality": 30, "profession": 4, "modifiers": [[155, 7], [154, 7], [153, 7], [156, 190]], "ncu": 10, "duration": 360000, "nano_cost": 39},
+ {"program": 93132, "crystal": 93135, "quality": 156, "profession": 4, "modifiers": [[155, 79], [154, 79], [153, 79], [156, 720]], "ncu": 48, "duration": 420000, "nano_cost": 411},
+ {"program": 151757, "crystal": 151769, "quality": 133, "profession": 12, "modifiers": [[122, 90]], "ncu": 41, "duration": 180000, "nano_cost": 471},
+ {"program": 151758, "crystal": 151774, "quality": 130, "profession": 12, "modifiers": [[131, 90]], "ncu": 40, "duration": 180000, "nano_cost": 449},
+ {"program": 151759, "crystal": 151770, "quality": 126, "profession": 12, "modifiers": [[127, 90]], "ncu": 39, "duration": 180000, "nano_cost": 436},
+ {"program": 151760, "crystal": 151771, "quality": 136, "profession": 12, "modifiers": [[129, 90]], "ncu": 42, "duration": 180000, "nano_cost": 481},
+ {"program": 151761, "crystal": 151772, "quality": 123, "profession": 12, "modifiers": [[128, 90]], "ncu": 38, "duration": 180000, "nano_cost": 423},
+ {"program": 151762, "crystal": 151773, "quality": 130, "profession": 12, "modifiers": [[130, 90]], "ncu": 40, "duration": 180000, "nano_cost": 458},
+ {"program": 151763, "crystal": 151776, "quality": 24, "profession": 12, "modifiers": [[129, 25]], "ncu": 8, "duration": 180000, "nano_cost": 86},
+ {"program": 151764, "crystal": 151777, "quality": 21, "profession": 12, "modifiers": [[122, 25]], "ncu": 7, "duration": 180000, "nano_cost": 83},
+ {"program": 151765, "crystal": 151778, "quality": 21, "profession": 12, "modifiers": [[130, 25]], "ncu": 7, "duration": 180000, "nano_cost": 80},
+ {"program": 151766, "crystal": 151779, "quality": 21, "profession": 12, "modifiers": [[131, 25]], "ncu": 7, "duration": 180000, "nano_cost": 73},
+ {"program": 151767, "crystal": 151775, "quality": 17, "profession": 12, "modifiers": [[127, 25]], "ncu": 6, "duration": 180000, "nano_cost": 70},
+ {"program": 151768, "crystal": 151780, "quality": 18, "profession": 12, "modifiers": [[128, 25]], "ncu": 6, "duration": 180000, "nano_cost": 67}
+]
diff --git a/server/zoning.go b/server/zoning.go
@@ -236,7 +236,7 @@ func predictedPosition_locked(character *character, client *worldClient, now tim
speed := float32(1.5)
if character.running || character.flying() {
// Native movement reads RunSpeed without ability trickle-down.
- runSpeed := float32(character.baseStats().Speed.RunSpeed) + float32(character.inventory.equipmentBonus(156))
+ runSpeed := float32(character.baseStats().Speed.RunSpeed) + float32(character.inventory.equipmentBonus(156)+character.nanoBonus(156))
if float32(character.health) < float32(character.maximumHealth())*float32(0.15) {
runSpeed = (runSpeed+500)*(float32(character.health)/(float32(character.maximumHealth())*float32(0.15))) - 500
}