Classic 1.60: re-runnable custom SQL, camp Boosted Rest, weapon enchants, sniffed unit flags

- Custom SQL safe to run twice (the updater re-runs files whose content changed): guarded column adds, Guild Finder
  tables no longer dropped
- Camping: the campfire rest gives the Boosted buff of each camp feature nearby; Boosted Rest raises rested experience to
  5% of a level (Camp Tent)
- Classic spell effect 360 (poisons, shaman imbues, Spellstone) handled as a temporary weapon enchant; imbues without an
  item target enchant the main hand weapon, duration from the spell when the enchant has none
- Sniff import: unit flags read correctly (VisibleItem layout), quest NPCs immune with their real reputation factions,
  Camp Tent not selectable
This commit is contained in:
Advocaite
2026-10-02 17:36:48 +08:00
parent b2a6c9ac86
commit ec138b4e1f
12 changed files with 194 additions and 110 deletions
@@ -1,2 +1,4 @@
-- Safe to run again (the database updater re-runs files whose content changed).
-- Classic 1.60: characters can have a surname (up to 48 characters, shown after the name: "Name Surname")
ALTER TABLE `characters` ADD COLUMN `surname` varchar(48) NOT NULL DEFAULT '' AFTER `name`;
SET @sql := IF((SELECT COUNT(*) FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'characters' AND COLUMN_NAME = 'surname') = 0, 'ALTER TABLE `characters` ADD COLUMN `surname` varchar(48) NOT NULL DEFAULT '''' AFTER `name`', 'DO 0');
PREPARE stmt FROM @sql; EXECUTE stmt; DEALLOCATE PREPARE stmt;