a chat link is one token now, and tooltips print true costs
- a chat link edits as one atomic token: the caret can't land inside it, its colors survive, one keypress removes it whole - spell tooltips print the resolved mana cost through the reference's own table walk, and the "% of base mana" line dies - the spirit healer's confirm comes back after a cancel and wears its warning icon - the dressing room's pane is a live animating model, and a tried-on bow lands in the hand Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -196,11 +196,15 @@ pub(in crate::script) fn install(lua: &Lua) -> mlua::Result<()> {
|
||||
Ok((ins[0], ins[1], ins[2], ins[3]))
|
||||
})?,
|
||||
)?;
|
||||
// GetNumLetters: the CHARACTER count (not bytes) — `0x7992c0` walks the class array.
|
||||
// GetNumLetters: the LETTER count — `0x7992c0` walks the class array (`0x77bc80`), which
|
||||
// counts classes 2, 3 and 6 only, so escapes are free and a 43-byte item link reports 9
|
||||
// (decision 1077). Not bytes, and not chars either.
|
||||
m.set(
|
||||
"GetNumLetters",
|
||||
lua.create_function(|lua, this: Table| {
|
||||
with_editbox(lua, &this, |eb| eb.text.chars().count() as i64)
|
||||
with_editbox(lua, &this, |eb| {
|
||||
crate::markup::ClassMap::new(&eb.text).num_letters() as i64
|
||||
})
|
||||
})?,
|
||||
)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user