Skill locks
Each character owns a map from skill to absolute expiry. SQLite skill_locks
stores the same (player_id, skill, locked_until) relation. Item charges,
resource gains and the appropriate actor's lock commit together. Clinics
commit Treatment124 with their separate surgery-access window. Fast Attack147
and Fling150 commit their locks with the NPC damage/death outcome. Unrelated
inventory edits do not save or remove cooldowns.
The selected patient owns laboratory Treatment124 and Nano Recharger TimeAndSpace131 locks. Nano stims lock the user's FirstAid123. Different skills remain independent; a patient's lock survives deletion of the healer. There are no healer-owned receipts or inventory-specific cooldown fields.
Expiry removes the in-memory entry and sends CharacterAction164 once. It does not write SQL on countdown ticks or expiry notifications. Startup ignores expired rows; another use overwrites that owner's row for the same skill. Profile edits, gear changes and reconnects preserve the original deadline.
Native calculation and replication
Original kkr.dll 10073ae0 samples the locked actor's effective stat382 once.
It multiplies signed 32-bit raw seconds and the modifier, retaining the low
32 bits, scales the signed product by the original binary32 constant 0.01,
adds signed raw seconds and truncates toward zero through _ftol. The stored
result is the low 32 bits. The server matches the translated WASM client's
separate binary64 multiplication and addition; it does not substitute exact
decimal percentages or round a negative value down.
| Raw seconds | Modifier +5 | +50 | -5 | -50 |
|---|---|---|---|---|
| 15 | 15 | 22 | 14 | 7 |
| 20 | 20 | 29 | 19 | 10 |
| 40 | 41 | 59 | 38 | 20 |
| 600 | 629 | 899 | 570 | 300 |
Use-time action170 carries the authored raw duration. The server persists its
already-scaled deadline. On a fresh connection, FullCharacter's seventh encoded
list carries (skill, ceil(deadline-now)) pairs. The native activation handler
copies those remaining seconds directly into the lock vector, bypassing the
SkillTime calculation. Restoring a lock therefore neither samples the current
modifier nor needs an action170 replay. Expired locks are omitted. An existing
native lock ignores another action170, including after gear changes.
This reproduces the proven ordinary-duration contract. Original x87 precision control remains unpinned; pathological billion-second inputs can differ from the translated client's binary64 result. Native one-second countdown phase can also differ from the server's wall-clock expiry by less than one second once active. Countdown starts on native actor activation; asset loading can delay that relative to packet receipt. Observed cold-load displays lagged wall time by a few seconds. Authoritative expiry164 still clears the lock at its saved deadline, independently of that display delay. Direct snapshot restoration also preserves positive locks after a gear change to modifier <= -100. The original deadline remains authoritative; expiry164 removes the native lock once.
Evidence and checks
The original binary hash, 19 complete retained REA records, translated source,
53 arithmetic fixtures and exact removal route are under
local/skill-lock-research/native/. Setter assembly evidence is
ev_7b0b159708714234fe2b12acaa00c1561360f684f87d83a192764c032f4d5787;
removal is ev_d3c272efae71f0e9f1fb434009133f7fd20de4805140ed3e5fafc0a54d9c7a17.
FullCharacter reader1007f5b0 is
ev_44ff34167a7b005d7ab9e5a881b06b21d3d2fa958cbd8d5bb9adcd88df40a5ce;
activation1007eea0 is
ev_536ab4204cf8d5b82781e8a0435782a6a0f0b6e1318a57c7591fd4bb03f3167b.
Complete records and the encoded-list mapping are retained under
local/implant-catalog-research/native/. The activation applies installed
implant OnWear effects before directly appending the snapshot's lock pairs.
Tests exercise public kit, clinic, equipment-move and special-attack handlers,
cold reopening, recipient ownership, unrelated skills, last-charge rollback,
direct snapshot recovery and one-time expiry without database churn. Modifier
aggregation tests substitute complete OnWear/nano Modify effects to isolate the stat;
they do not claim that implant101173 originally modifies382. The original
modifier sources are Jobe implants/components and require further implant
catalog support before ordinary players can use those sources. Their complete
records and original-payload verification are under
local/skill-lock-research/catalog/.
Snapshot regression tests cover seven current modifiers, including -100/-150,
multiple independent skills, learned nanos, expired entries between simulation
ticks, cold database recovery and private connection initialization without
action170 replay. The full Go suite passed in 552.551 seconds, focused race
checks passed in 99.637 seconds, and vet was clean. Logs are under
local/skill-lock-bootstrap/. Earlier medical/special aggregation, atomicity,
concurrent-healer and use-time checks remain under local/skill-lock-research/.
An actual GPU/OpenGL WASM client used the clinic's raw600 lock and a nano stim's raw40 lock. A fresh connection and page reload restored their direct FullCharacter pairs without start replays. Reuse during the restored stim lock preserved its 24 charges; expiry sent one164 at the saved deadline, then a new use reduced it to23. The independent clinic deadline never changed. Original Jobe modifier gear remains pending implant admission: the inventory validator correctly rejected an attempted equipped cold-load fixture, which was restored to ordinary inventory. This run's native modifier was zero; nonzero snapshot independence is covered by the regression fixtures and original activation code, not a claimed real-Jobe gameplay test.
Read-only native snapshots, complete world-stream parsing and verification are
under local/skill-lock-bootstrap/. Owned fixtures were removed with
FK/integrity checks and unchanged hashes for all unrelated rows. Browser runs
had no errors. Earlier two-client patient TimeSpace131 ownership, last-charge
use and private delivery checks remain under local/nano-recharger-smoke/ and
are described in medical consumables.