- ARMOR_PENDANT / APPLY_ENCHANT_* 123-128 / c_Equipment_Pendant (server WEAR_PENDANT 27) constants - mt_pendant: equipment slot under the earring, drop targets for 71302/53996 (reroll) and 71301/53997 (add, max 5), MTPENDANT messages; enchant apply texts in mt_applies - switchbot ignores talismans and talisman rerolls - make_items keeps the six +0..+200 chains (1206 items) and the four attribute items - tools/server/pendant: refine sets 440-499 (AVA2 rows) + install.sh Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
// PORT: item bonuses added after 40250 (AVA2 numbering, server common/length.h). The packed uitooltip.py
|
|
// only knows 40250's applies; add the new ones to its AFFECT_DICT so item and socket tooltips show them.
|
|
static const char c_szAppliesScript[] = R"PY(# -*- coding: utf-8 -*-
|
|
import item
|
|
import player
|
|
import uiToolTip
|
|
|
|
L = player.AutoHuntLocalize
|
|
TEXTS = (
|
|
("APPLY_ATTBONUS_STONE", "对陨石伤害 +%d%%"),
|
|
("APPLY_ATTBONUS_BOSS", "对 Boss 伤害 +%d%%"),
|
|
("APPLY_ENCHANT_ELEC", "对雷属性怪物伤害 +%d%%"),
|
|
("APPLY_ENCHANT_FIRE", "对火属性怪物伤害 +%d%%"),
|
|
("APPLY_ENCHANT_ICE", "对冰属性怪物伤害 +%d%%"),
|
|
("APPLY_ENCHANT_WIND", "对风属性怪物伤害 +%d%%"),
|
|
("APPLY_ENCHANT_EARTH", "对土属性怪物伤害 +%d%%"),
|
|
("APPLY_ENCHANT_DARK", "对暗属性怪物伤害 +%d%%"),
|
|
)
|
|
|
|
|
|
def Text(text):
|
|
return lambda value: L(text % value)
|
|
|
|
|
|
for name, text in TEXTS:
|
|
if hasattr(item, name):
|
|
uiToolTip.ItemToolTip.AFFECT_DICT[getattr(item, name)] = Text(text)
|
|
)PY";
|