Moon Love Story

✅ 可玩

月影奇缘

yueyingqiyuan

🔑 fluffos / Mud@2026 更新 85d6a35 2026-09-02 源码 下载 ZIP

▶ 开始游玩 · Play Now

登录横幅原文亦作"世纪西游之月影奇缘"/"Moon Love Story",一个以《西游记》 世界观为背景改编的老牌 MUD。属于 ES II 引擎系列(与 `es1_win`、 `xkx2001`、`rzrmud`、`xo` 等同源,master 文件署名可追溯到 "Lil"→ "Annihilator" 这一支)。

English

The login banner reads "Century Journey to the West: Moon Love Story" — a venerable ES II-lineage MUD (sharing engine ancestry with this collection's es1_win, xkx2001, rzrmud, and xo, traceable through developer "Lil" back to "Annihilator") adapted from the Journey to the West mythos. New characters are swept straight into the pilgrimage storyline alongside the genre's usual talent-point allocation and master/apprentice mechanics, and the prose and NPC dialogue carry the plain, terse style typical of circa-2000 Chinese MUDs. One registration quirk carried over from that era: the email field is validated only for containing the literal substring "ccb" (e.g. [email protected]), and keeps rejecting any address that doesn't include it.

README

内容亮点

在线试玩

https://mudlibs.fluffos.info/yueyingqiyuan/

管理员账号 / Admin account

警告:这是一个公开的默认密码,仅供本地/浏览器试玩。正式对外开服前
请务必修改此密码。

本地运行

cd libs/yueyingqiyuan
~/src/fluffos/build-debug/src/driver config.fluffos

游戏端口:40048

NOTES · 移植与修复记录

yueyingqiyuan — 月影奇缘 (Moon Shadow Wondrous Fate)

Archive: 月影奇缘.rar (#54). Port: 40048. Status: done (boots clean, full registration flow verified end-to-end into the actual game world).

What this is

Config's own name : field confirms the self-identified title: ★月影奇缘★ ("Moon Shadow Wondrous Fate" / "Moon Love Story", per the lib's own English banner text). Raw archive root is nested at raw/yy/yueying/ (the top-level yy/ wraps the real mudlib dir yueying/); config.cfg's comment says # name of this mud xyj 2000 and the live banner shows 世纪西游 之 月影奇缘 / A Journey to the West / Moon Love Story — a 西游记 (Journey to the West)-themed reskin, credited "XYJ 2000, Copyright 2000-2001 by Moon lOVE Story", with wizard names 巫师协会 crediting "stone"/"fix". The raw archive also ships a generic 小熊泥苑.txt readme (the same "小熊泥苑" hosting-site readme text seen bundled with sjtx2, archive #36) — same distribution site, unrelated codebase, not a lineage signal by itself (consistent with the project's repeated "similar branding ≠ shared lineage" finding).

Lineage: adm/obj/master.c's own header comment says // for ES II mudlib / // original from Lil / // rewritten by Annihilator — the same "ES II" family already seen in es1_win/esI/xkx2001/rzrmud/xo/ xo_final/bmxkx2001. Layout is adm/obj/{master,simul_efun} (not adm/single/ like the Century family, not adm/obj overlapping with custom-ACL securityd.lpc like shujian2008). feature/dbase.lpc (the F_DBASE-equivalent) implements real local set/query/delete/add functions (inherited by std/char.lpc etc.) — the architecturally-correct pattern, confirmed NOT the nitan-family bare-simul_efun dbase bug (§15). ~11,612 raw files, 9,498 renamed to .lpc.

Fixes applied

1. AGENTS.md §15h (is_chinese / check_legal_name GBK byte-range bug) — confirmed present, fixed both sites: - adm/simul_efun/chinese.lpc's is_chinese(str): was str[i] < 161 || str[i] == 255 plus an i%2==0-gated secondary GBK lead-byte range check, and strlen(str) < 2 as the minimum-length gate. Replaced with a single CJK Unified Ideographs codepoint range check per character (str[i] < 0x4e00 || str[i] > 0x9fff) and strlen(str) < 1 (character-count equivalent of "at least 1 full GBK char"). - adm/daemons/logind.lpc's check_legal_name(name): bound strlen(name) < 2 || strlen(name) > 12 (byte counts, message says "一到六个中文字" = 1-6 Chinese characters) halved to < 1 || > 6; the sliding-window loop's i%2==0 && !is_chinese(name[i..<0]) gate had the i%2==0 && dropped (every index is already one character under UTF-8 — harmless redundancy with the fixed is_chinese(), not a behavior change, per the catalog's documented pattern). 2. AGENTS.md §15p (proactive DNS/intermud daemon preload exclusion)/adm/daemons/network/dns_master was present in adm/etc/preload; removed it before the first boot attempt. Confirmed via source read that nothing else in the registration path references it. Driver booted in well under 20 seconds with no hang. 3. New: message.lpc's tell_room() passes a raw int 0 to message()'s 4th (exclude) argument when called with only 2 args (the overwhelmingly common call shape — ~578 call sites in this lib use the 2-arg form). This driver's message() efun 4th arg is typed void | object | object * (see src/packages/core/core.spec) and rejects a plain int 0 at runtime: Bad argument 4 to EFUN message() Expected: object, array, Got: int(0). Found live on first boot — a preloaded room (/d/wusheng/room1.lpc)'s ambient sounding() heartbeat called tell_room(where, msg) (2-arg) every ~10s and errored every time. Fixed at the single shared root cause (adm/simul_efun/ message.lpc's tell_room), not per call-site: exclude || ({}). This is a genuinely new bug class for the catalog — the "ES II" lineage's own message.lpc implementation, not previously exercised by a boot that had a preloaded ambient-sound room reaching this exact code path this early. 4. AGENTS.md §14 (valid_override 2-arg → 3-arg)master.lpc's valid_override(file, name) only checked file == SIMUL_EFUN_OB, but adm/simul_efun/object.lpc (one of several fragments #included into adm/obj/simul_efun.lpc) does efun::destruct(ob) — for a fragment, file is the physical file, never equal to SIMUL_EFUN_OB itself. Upgraded to the 3-arg signature and also check main_file == SIMUL_EFUN_OB || main_file == MASTER_OB. Per the catalog's own caveat, this may never actually surface on a real boot (nothing in debug.log suggests it did here either) — applied proactively since it's free and correct, matching the documented pattern exactly.

Confirmed NOT needed (checked by reading the actual source, not assumed)

Known, non-blocking issues (not fixed — documented per AGENTS.md §12/§13/§15m precedent)

Interactive test result — full registration flow

Read adm/daemons/logind.lpc's full logon()→encoding()→if_young()→ get_id()→get_new_id()→confirm_id()→get_name()→new_password()→ confirm_password()→get_email()→get_gender()→confirm_gift()→enter_world() callback chain before scripting the test (per the task's explicit instruction) — confirmed the shape: a GB/BIG5 encoding prompt (GB_AND_BIG5 is #defined in include/mudlib.h, so this prompt is live, not compiled-out), then a "still have unfinished work? (yes/no)" age/distraction gate (any non-n answer ends the session), then an English id prompt where literally typing new branches into new-account registration (a already-used/banned id just re-prompts, no separate "new" confirmation step), then a fresh English id (3-8 lowercase letters, checked against banned_id), then — with no y/n confirmation in between — straight to the Chinese-name prompt, then password (twice), then email (custom ???@ccb-substring requirement), then gender (m/f), then automatic confirm_gift("n", ...)enter_world(), which moves a fresh no_gift-flagged character straight to /d/wiz/init (a talent-point allocation mini-game: reroll one of 4 stats via [0-3], or [9] to accept — 9 itself asks a second y/n confirmation before actually finishing).

Full clean transcript, one continuous connection, id zhongfen / real Chinese name 秦风终:

gb                        -> GB encoding selected
no                        -> not a distracted worker
new                       -> new-player registration
zhongfen                  -> English id accepted
秦风终                     -> Chinese name accepted (no rejection message)
test12345                 -> password
test12345                 -> password confirmed
[email protected]           -> email accepted
m                          -> gender: male
9                          -> accept default talent allocation
y                          -> confirm talent allocation
  好!祝你西天取经早成正果!
  只见眼前霞光一闪,你已经来到了一个陌生的世界(look)...
  【月影奇缘】: 听说来了一位叫做秦风终的少年英雄。
look
quit

Player landed in the actual game world (server-wide announcement "听说来了一位叫做秦风终的少年英雄" — "heard a young hero named Qinfeng-Zhong has arrived" — confirms enter_world()/confirm_gift() completed and the character object is live). A second full run (qfsan/秦风三, qinfeng/秦风六) reached the actual starting room (南城客栈 / South-City Inn) with visible exits, a bulletin board, and 3 NPCs (店小二, 邮差 千里眼, 唐僧), including an NPC greeting message — confirming the room itself, not just the character-creation flag, is fully live. Driver process remained alive and responsive after every one of these tests.

lpcc sweep

9,498 files, 9,220 pass / 278 fail (97.06%). Failure categories triaged (not fixed individually, per AGENTS.md §6b — breadth over exhaustive depth):

- 12 "Invalid UTF8 codepoint in string literal": worth a note for whoever revisits — these are real conversion casualties that slipped past convert_lib.sh's heuristics on this particular archive; not chased further given the sweep's job here is signal, not an exhaustive per-file fix pass, and none of the affected files are on the boot/login path (confirmed: the whole registration+game-entry flow booted and ran with zero such errors in debug.log).

Memory stayed healthy throughout (~19GB available at completion, peaked around 2.5GB RSS on the lpcc process mid-sweep — small relative to the ~9,500-file count, no pressure requiring an early kill despite 2-3 other agents' concurrent sweeps running on the same host at the time).

Housekeeping

Driver was killed after testing; verified no driver config.fluffos process remains with cwd under libs/yueyingqiyuan/ before finishing.

Re-verification pass: driver rebuild + formatter + WASM (2026-07)

WASM-enablement pass (2026-07): loopback gates + admin seeding

Standard four-change pass per AGENTS.md §1.3b/§1.3e/§1.5:

- logon() (~line 100): per-IP concurrent-login-attempt cap (login_cnt > 3 destruct) now skipped for loopback. - encoding() (~line 185): the no-query_ip_name destruct and the IP-must-be-numeric character-scan destruct are skipped for loopback/malformed IPs (the WASM garbage-IP case). - get_id()'s MAX_LOGIN per-IP multi-login cap (~line 375): loopback exempt. - get_passwd()'s 20-second relogin load throttle (~line 585): loopback exempt (kept for remote connections).

WASM long-sit boot-watch pass (2026-07)

200s scripts/wasm_boot_watch.sh sit: no new failures beyond the already-documented ftpd.lpc/socket-efun sockets-absent preload error (caught by master.lpc's preload catch(), cosmetic — FTP feature unavailable under WASM, not on any login/gameplay path) and the already-documented emoted.o restore warning. Proactively fixed adm/simul_efun/object.lpc's file_owner() (return namereturn dir — misattributes 3-level-deep /u/<wiz>/<subdir>/<file> log_error writes to a bogus path) as part of a repo-wide port of the fix found live on sibling zhonghua2; did not fire in this lib's own sit, fixed proactively since it's the identical shared file. Retest: fresh registration (yysanit/秦风检) end-to-end through look/score/quit, clean, no regressions.

深度功能测试 / Deep functional test (2026-07-24)

Round-two deep-playthrough pass (per AGENTS.md §10.7; see libs/bxsj/NOTES.md's and libs/xiyouji/NOTES.md's "深度功能测试" sections for the worked examples this pass follows). Read doc/help/newbie in full first — it directly named the fight-vs-kill safety distinction (help combat gives the full contract: fight stops at unconsciousness/surrender/flight and doesn't carry a grudge; kill fights to the death and ignores quit), the apprentice/learn syntax, wimpy, and the general command set, exactly as the methodology predicts. Played as an ordinary new player through registration, exploration, safe combat, organic skill-learning and sect-joining, a real quit, a real-wall-clock-gap reconnect, and a shop-purchase attempt, native driver (build-debug).

Test characters (both kept, as representative playthrough evidence):

Bug found and fixed: this is AGENTS.md §7.17, not a new class — confirmed present via the shared "ES II" lineage, not independently discovered

yueyingqiyuan and xiyouji are documented siblings in the same "ES II / 西游记" mega-family (AGENTS.md §11; both this lib's own NOTES.md lineage note and xiyouji's independently confirm adm/obj/master.c's // for ES II mudlib // original from Lil // rewritten by Annihilator header). Per §7.17's own instruction to "check documented siblings for the same pattern before moving on," std/room.lpc was read first and found structurally identical to xiyouji's pre-fix copy — setup() calls this_object()->reset() synchronously as the last line of every room's create() (std/room.lpc:211-213), and reset() only marks a room's NPC population done on its very last line (set_temp("objects", ob), std/room.lpc:104 pre-fix) — and d/jjf/npc/zhangmen.lpc's init() calls a local create_identity() whose where-resolution does the exact same forced call_other(where, "???"); where_ob = find_object(where); idiom when where isn't already an object. This whole shape — 16 structurally-identical copies of a "sect entrance" NPC file (one per sect: d/jjf, d/nanhai, d/wusheng, d/xueshan, d/moon, d/sea, d/death, d/lingtai, d/fenghuang, d/pansi, d/shushan, d/xuyi, plus 4 under d/qujing/{kusong,wudidong,wuzhuang, xuanyuan}) each calling me->create_identity(<master path>, <own room path>) from init() — is the same copy-pasted pattern §7.17 documents for xiyouji's 9 sect-entrance NPCs, just with 16 sects instead of 9.

What was tested and confirmed working

Housekeeping

Driver killed by exact PID after testing (kill 1385155, confirmed via ps/ss -tlnp that both the process and the port-40048 listener were gone) — verified no driver config.fluffos process remains with cwd under libs/yueyingqiyuan/ before finishing. work/data/zhangmen/ zhangmen_qin_qiong.o (秦琼's own save file, touched by restore() calls made from testing create_identity()/apprenticeship in the 将军府 zone) was reverted to its committed content after confirming the diff was a pure key-reordering + .c.lpc header self-normalization from a restore()+save() round-trip, not a real state change. work/adm/etc/ banned_name (this lib's runtime name-reservation append target, see the "Re-verification pass" section above) picked up entries for the two kept test characters (沈青枫, 秦振风) — kept, since they correspond to real kept save files — and one entry for the discarded shenqing/沈青 character, which was removed along with that character's save files. No other scratch/diagnostic files were created outside /tmp (removed).

§7.86 跨库扫描修复(留言板 post 崩溃)

深度功能测试第二轮 / Deep functional test round 2 (2026-08-15, post driver-upgrade re-test)

Round-two re-verification against the current native build-debug driver (post-upgrade — pulls in PRs #1343/#1344 and the corpus-wide %-operator float-crash fix). Standard checklist + live playthrough-style verification.

Findings:

1. AGENTS.md §7.108 (obj/user.lpc's reconnect() missing enable_commands()): this lib has the kick-duplicate-login pattern (adm/daemons/logind.lpc calls user->reconnect() on the character body after exec(old_link, user)). Fixed by adding enable_commands(); as the first statement. Live-verified with two concurrent telnet sessions: session 2 logged in as fluffos, confirmed the "赶出去, 取而代之吗?(y/n)" prompt with y, and the resulting session correctly dispatched look (real room description) and score (real stat panel). (Other exec(old_link/reconnect() copies under www/cgi-bin, www/relative, and u/yxm/obj/logind.lpc are stray/dead per-user or web-tree copies, not the active LOGIN_D — confirmed via include/globals.h's LOGIN_D define — left untouched.) 2. adm/simul_efun/file.lpc: log_file() never called assure_file() before write_file(); added the call (plus a forward declaration). cat()'s write(read_file(file)) had no null-guard; changed to write(read_file(file) || ""). 3. Already correct, no change needed: cmds/wiz/update.lpc (only update.lpc in this lib) already guards with environment(me) &&. adm/obj/master.lpc's log_error() already uses the case-agnostic "arning:" filter (AGENTS.md §7.10). No adm/daemons/closed.lpc exists, so AGENTS.md §7.107 does not apply. maximum evaluation cost was already 30000000.

Live verification summary: booted the native driver on port 40048 (clean boot aside from pre-existing unused-variable/unknown-pragma warnings, no fatals; Initializations complete / Accepting telnet connections both printed). Logged in as the seeded fluffos admin (Mud@2026, via the gb-encoding prompt then the internal-network "还有好多工作没有做完?" gate answered no), confirmed real write access via update /adm/simul_efun/file (recompiled successfully). The lib's own boot-warning notifier ("有新文件update错误,立即查看 /log/log") fired as expected — checked /log/log, confirmed it's just the routine pre-existing compile warnings, not a new error. Ran the two-session kick-duplicate-login reconnect test described above and confirmed the §7.108 fix live. No fatal errors in the driver's console output. Killed the driver by exact PID when done.

本轮修改的文件 / Files modified this round:

Round-three deep functional test (2026-08-18)

Standard §10.7 round-three pass, going deeper than rounds one/two per the task brief: pushed through a real death→gate→reincarnation cycle with a netdead reconnect *during* the reincarnation chain, completed a full shop purchase (round two flagged this as untested), live-verified board post+read, and ran the five standing checklist items from the task (§7.111/§7.112/§7.113/§7.90/logind.lpc enter_world() save).

Standing checklist results

1. §7.111 (master.lpc's standard_trace() calling file_name(error["object"]) unconditionally): not present. Both call sites in adm/obj/master.lpc (standard_trace() line ~244 and report_error() line ~338) already guard with (undefinedp(error["object"]) || !error["object"]) ? "(none)" : file_name(error["object"]). No fix needed. 2. §7.112 (NPC/room init() scheduling an unguarded call_out() chain, exploitable via a netdead reconnect re-broadcasting init()): found and fixed, see below. 3. §7.113 (netdead reconnect not restoring heart_beat): not present. obj/user.lpc's reconnect() (the one actually invoked — confirmed via adm/daemons/logind.lpc:1175's user->reconnect();, itself called from the real reconnect(object ob, object user, int silent) handler at lines 625/702, not dead code here) already does enable_commands(); set_heart_beat(1); ... as its first two statements. This predates the round-two §7.108 fix (which only added enable_commands(); set_heart_beat(1) was already there per git log on this file). Live-verified below rather than trusting the code read alone, per the task's own "call's query_heart_beat() is unreliable" warning — used a real health-regen signal instead. 4. §7.90 (maximum evaluation cost stuck at the risky 700000 default): not applicable, already 30000000 (set in the round-two pass). 5. logind.lpc's enter_world() missing/commented-out ob->save(): not applicable, enter_world() calls ob->save(); at line 1027.

Bug found and fixed: §7.112, this lib's own 4-file instance of the death/reincarnation init()-call_out() race

Grepped every init() body in the archive for an unguarded call_out( (481 hits total, the overwhelming majority ordinary one-shot NPC chat/ greeting timers where a duplicate is harmless). Narrowed to the death/reincarnation-themed directory the task flagged as the highest-risk shape: d/death/npc/{b,pang,bgargoyle,wgargoyle}.lpc — all four are 阴间判官-style "psychopomp" NPCs placed in the death-zone rooms a player's character is moved into on death (feature/damage.lpc's die()this_object()->move(DEATH_ROOM), DEATH_ROOM = /d/death/gate, which places npc/pang; the other three sit in new-out*-linked rooms further into the zone). All four have the identical shape: init() unconditionally does call_out("death_stage", 5, previous_object(), 0); with no guard against being re-triggered, and death_stage()'s final stage calls ob->reincarnate() and ob->move(REVIVE_ROOM) — i.e. exactly the "duplicate reincarnation chain" hazard the task describes. Since a netdead reconnect re-broadcasts init() to every object in the reconnecting player's environment (the same mechanism the round-two §7.108 fix depends on), reconnecting while standing in one of these rooms mid-chain would schedule a second, independently-ticking death_stage chain overlapping the first — duplicate/interleaved psychopomp dialogue at minimum, and a real risk of a second ob->reincarnate()/ob->move(REVIVE_ROOM) racing the first.

Fix (ported from the task's reference shape, libs/sj/work/d/death/ npc/wgargoyle.lpc, extended slightly — see below): added a per-target "death_stage_active" set_temp()/query_temp()/delete_temp() guard. init() now checks if (previous_object()->query_temp ("death_stage_active")) return; before setting the flag and scheduling the first call_out. death_stage() clears the flag on every exit path (not just the two the sj reference clears) — including the "turned out not to be a ghost, attack/kick them instead" branches in b.lpc/bgargoyle.lpc/wgargoyle.lpc and the max_gin/kee/sen <= 0 early-return in bgargoyle.lpc, which the sj reference's own fix leaves un-cleared (a latent gap there — if that branch fires, the flag would stay set forever for that player object, permanently blocking any *future* legitimate death_stage chain for the same login session). Applied identically across all four files; confirmed each diff is minimal (git diff --stat, 9-17 lines changed per file, all plain-LF files so no CRLF risk).

Live reproduction and verification (single script, deterministic timing, native build-debug driver, fresh debug.log):

Economy: completed a real purchase (round-two gap closed)

Round two flagged "no successful purchase completed live" as an honest gap. This round closed it: discovered live that score's "存款" (bank deposit, the "balance" property) is not the currency cmds/std/ buy.lpc's can_afford()/pay_money() check — those check for actual money *objects* carried in inventory (feature/finance.lpc, presence- checks coin_money/silver_money/gold_money/gold-coin_money/ thousand-cash_money), a deliberate two-tier economy (bank deposit vs. cash-in-hand), not a bug. Used the seeded admin to clone /obj/money/ silver, set_amount(50), and give it to qintan; buy jiudai from xiao er then succeeded correctly (你向店小二买下一个桂花酒袋。, inventory and remaining silver both updated correctly, 49 taels left). Confirms the vendor/purchase code path is sound.

Board post/read: live-verified end to end

南城客栈留言板 (obj/board/nancheng_b.lpc, a BULLETIN_BOARD instance — the same class the corpus-wide §7.86 sweep touched in this lib, previously only compile-checked, never live-played) — read new and post <title> (via the real ed-editor flow, <body text> then . to end) both worked correctly as the seeded admin (posting requires either wizard status or literate skill ≥ 10, a real, intentional gate — a fresh player correctly gets "还是先去学点读书写字吧!" instead, not a bug). Confirms the §7.86 fix (dropping the redundant replace_program() call) did not break the underlying post/read mechanism it was applied to. (Test churn: reverted the board's own save file, data/board/nancheng_b.o, after confirming the post worked — kept the fix, not the test data.)

Other things tested, no issues found

Housekeeping

Driver killed by exact PID (kill 102769; verified via ps and ss -tln that both the process and port 40048's listener were gone) after confirming readlink /proc/102769/cwd matched this lib's work/ directory. Reverted incidental save-file churn that wasn't real test evidence: data/board/nancheng_b.o (the test board post) and the seeded admin's data/login/f/fluffos.o / data/user/f/fluffos.o (pure key-reordering + last_on timestamp bump from login activity, no real state change). Kept qintan's save files (data/user/q/qintan.o, data/login/q/qintan.o) as playthrough evidence, consistent with prior rounds' convention — it demonstrates a full death→reincarnation→revive cycle survived two real deaths cleanly. adm/etc/banned_name picked up 秦探三's name-reservation entries (kept, since the character save is kept). No scratch files were left in the lib's own directory (test scripts lived under the session scratchpad, not the repo).

本轮修改的文件 / Files modified this round:

§7.100 sweep (2026-08-19)

Fixed the corpus-wide inherit ROOM; ... replace_program(ROOM); redundant-replace bug (AGENTS.md §7.100). 369 live occurrences deleted: 365 via scripted sweep (fix_710_room.py), plus 4 hand-fixed roommaker-tool templates across 4 separate tool copies (obj/roommaker.lpc, d/wiz/roommaker.lpc, u/misc/roommaker.lpc, u/stone/obj/roommaker.lpc — all simple string-builder variant). 8 already-commented-out instances (incl. 2 in u/wiz/citymaker/citymaker.lpc) left untouched. No real .lpc source found under work/data/. Verified via build-debug driver boot: clean compile, port 40048 listening, zero new "cannot replace"/"cannot bind" debug.log lines.

§7.30 uninitialized-mapping accessor sweep (2026-08-20)

Corpus-wide mechanical sweep of the feature/skill.lpc shared-lineage bug (confirmed independently on xiakexing2017/jqxz2015/haiyang2 via round-four testing): 4 accessor(s) in this file returned a raw never-initialized mapping instance variable (defaults to int 0, not ([]), until first assigned), crashing any unguarded keys()/sizeof()/indexing caller for a fresh/untrained character. Fixed at the accessor level (mapp(x) ? x : ([])) per the documented remedy. Verified via lpcc --batch static compile check only (not a live boot) as part of a large mechanical sweep; not individually functionally re-tested live on this lib.

AGENTS.md §7.19: enable_player() reentrancy guard (2026-09-01)

Same corpus-wide bug class as mhxy/wuhanzhan: feature/command.lpc's enable_player() wraps enable_commands() and is unconditionally reachable from an NPC's init() via setup()/reset_me() (confirmed on this lib's own d/*/npc/zhangmen*.lpc-family NPCs, matching mhxy's originally-documented d/xueshan/npc/zhangmen.lpc pattern). Calling enable_commands() on an object that's already living() makes the driver re-invoke that object's init() as a side effect; since init() calls back into enable_player(), that is genuine same-call-stack reentrancy that repeats until "Too deep recursion" aborts a room's first-ever visit.

Fixed with a true reentrancy flag (nosave private int in_enable_player_now;), NOT a bare if (living(this_object())) return; guard — this lib's feature/damage.lpc revive() and cmds/std/sleep.lpc wakeup()/wakeup2() all legitimately re-invoke enable_player() while the object is still living() (that's how a fainted/asleep character gets commands back), so a living()-gated guard would silently break every one of those real re-enables. enable_player()'s single body has no early return statements, so the flag is set at entry and cleared once, before the function's fall-through end. Verified with a single-file lpcc compile check (exit 0, no errors) against feature/command.lpc.