Commit graph

833 commits

Author SHA1 Message Date
Sarjuuk
26292d17c5 Objects/Fixup
* don't show loot charges in infobox if restock cd is set but min/max charges are not
 * fixes #493
2026-01-29 22:11:19 +01:00
Sarjuuk
e675a8f953 PageTemplate/Fixup
* Don't try to be smart with the helper methods as they are used to escape user input.
2026-01-26 20:04:49 +01:00
Sarjuuk
c6d92031c5 Quests/Fixup
* fix converting min/max reputation requirements to TC condition
   on detail page (it still lacks the exact amount)
 * also Game::getReputationLevelForPoints was off by 1
2026-01-25 19:26:47 +01:00
Sarjuuk
4c598972cc Search/Misc
* why loop when regex does trick
 * further unify variable naming and layout
2026-01-19 20:15:11 +01:00
Sarjuuk
09fe715bc1 Spells/Fixup
* add forgotten filter criterium 43 - usableinbgs
 * fixes #484
2026-01-19 19:47:07 +01:00
Sarjuuk
15338dc503 PageTemplate/Fixup
* only need to ask for consent if analytics is enabled
 * fixes #483
2026-01-19 19:47:07 +01:00
Sarjuuk
53374972ef Search/Fixup
* strip leading/trailing dashes from search tokens.
   Casues FT syntax errors when combined with our own modifiers
2026-01-19 19:31:35 +01:00
Sarjuuk
0ea5477d6e Items/Fixup
* fix spell struct to calculate stats from when viewing item XML
2026-01-19 19:31:35 +01:00
Sarjuuk
2e8abf6dff PageText/Misc
* $t is probably the players HK rank. Fill with name for lowest rank.
2026-01-18 14:56:26 +01:00
Sarjuuk
6df9145446 Search/Fixup
* do not use stopwords in fulltext search
   apparentyl there is a bug in innodb where including stopwords in a search causes the lookup to fail entirely.
   e.g. innodb_ft_enable_stopword must be disabled when the index is edited (rows are added/removed)
 * don't create a MATCH AGAINST search from empty search strings after sanitization
 * drop fulltext indizes for locale zhCN
   logographic languages need special treatment, which handling may differ by db provider
 * use LIKE search by default for locale zhCN. Added config option to use fulltext if supported by db.
2026-01-17 23:07:44 +01:00
Sarjuuk
7616ec25fc DB/Search
* add more indizes to large tables for cols used in lookups
 * drop multi-column indizes on spell as they are not utilized by mysql
 * add and use fulltext indizes for names of items, spells, quests, creatures & objects
   could add more, but is it really necessary?
 * limitations
   - still need a solution for race/class/spellFamily masks cols that are used as such
   - fulltext indizes in boolean mode cant partial match the end of a word.
     reverse name cols and search and match back to front like that..? blows up db size even more though
     (+trike* : "stormstrike" => +ekirt* : "ekirtsmrots")
2026-01-16 16:56:24 +01:00
Sarjuuk
a89eef5736 Setup/Fixup
* fix required class/race masks on items and quests
   during import instead of on demand
2026-01-16 08:27:27 +01:00
Sarjuuk
2ef3f575c3 PageTemplate/Misc
* fetch user vars on __wakeup / __construct so the queries get picked up by the DB profiler
 * unset temporary vars before serialization
 * reduce redundancy
2026-01-15 22:43:20 +01:00
Sarjuuk
b4f40b4264 Filter/Fixup
* only criteria should be affected by the match any/none selector
 * multi-selects are never null and shouldn't be tested as such.
2026-01-13 22:19:48 +01:00
Sarjuuk
ce020204cb Events/Fixup
* fix events occupying an additional day in calendar view
   if starting and ending at 0:00
2026-01-11 19:38:57 +01:00
Sarjuuk
face95c1dd PageTemplate/Consent
* fix showing consent overlay when cookie is already set
2026-01-09 17:25:20 +01:00
Sarjuuk
a6438454d6 Misc/Cleanup
* remove namespace includes sneakily auto placed by vscode
2026-01-07 19:42:17 +01:00
Sarjuuk
8417b6854b PageTemplate/Fixup
* fix broken external links from detail pages
 * amends 715c1534eb
 * closes #477
2026-01-02 17:05:58 +01:00
Sarjuuk
715c1534eb Core/Endpoints
* don't use raw input to recreate subcategories for filter urls and
   external links
 * if a page does not expect categories it will now error out if it is
   called with parameters
 * fixed infite redirect loop that could occur if the pageName was an
   invalid string
 * added lost filter string for external page call to NPCs Page
2026-01-01 01:26:35 +01:00
Sarjuuk
23c5c71f4a Misc/Fixup
* fixed crash when bit blob contains trailing whitespace
2025-12-30 20:39:22 +01:00
Sarjuuk
eec21c2763 Quests/Fixup
* rename columns of quests table to avoid name collisions
   and to match the dbc they are referencing
 * fixes #463
2025-12-30 19:16:10 +01:00
Sarjuuk
c44bf4f575 Config/Misc
* hardcode sql limits within their respective components instead of
   having them configurable
 * creating a new DBTypeList defaults it to being unlimited
   * SQL_LIMIT_NONE (0) > removed as it only existed for consistency
   * SQL_LIMIT_DEFAULT (300) > frontend / Listview::DEFAULT_SIZE
   * SQL_LIMIT_SEARCH (500) > Search::DEFAULT_MAX_RESULTS
   * SQL_LIMIT_QUICKSEARCH (10) > Search::SUGGESTIONS_MAX_RESULTS
2025-12-30 03:20:09 +01:00
Sarjuuk
b9d888ab3a Compat/TDB
* update conditions with changes from TC
   > 4fd3669f1b
2025-12-29 20:04:19 +01:00
Sarjuuk
2b3b9de8bc Entity/AI
* store and display StringIds
 * unify storage of AI/Scripts for NPCs and Objects
 * store and display StringIds and AI/Scripts from individual spawns in
   mapper tooltip and infobox
2025-12-29 20:04:19 +01:00
Sarjuuk
9db943e8f4 Compat/TDB
* drop references to script_waypoint and waypoints tables, removed in
   > 91dcae540e
   > f3b691dcb0
 * db requirement bump
2025-12-28 20:18:20 +01:00
Sarjuuk
4e848e29a7 Quests/Fixup
* fix missing objective quantity if required entity is unknwon
 * don't display go/npc objective if go/npc id is 0
2025-12-28 20:18:20 +01:00
Sarjuuk
69b8fdcc27 Misc/Cleanup
* could have sworn there were more blobs to be indexed..
2025-12-28 20:18:19 +01:00
Sarjuuk
9bbe95d5e8 Search/Fixup
* partially revert eb70065e0f as the
   regex without the /u flag destroys valid umlauts like 'ß'
 * convert strings from utf8 to utf8 instead to achieve the same effect
2025-12-26 17:22:29 +01:00
Sarjuuk
e93774f854 SmartAI/Misc
* format times as float for more precision
 * display 0 values for numeric ranges
2025-12-21 20:42:45 +01:00
Sarjuuk
e60bed061d PageTemplate/Cache
* allow flagging scripts as non-caching and purge them before serialization
 * fixes consent scripts being passed on to other users
2025-12-18 21:45:28 +01:00
Sarjuuk
b591311803 Lang/Fixup
* fix crash when race mask was resolved to faction
 * fix id buffer bleeding from resolving class mask into
   resolving race mask and vice versa

 * fixes #472
2025-12-18 00:57:07 +01:00
Sarjuuk
2a8db972a1 Misc/Cleanup
* drop unused and obsolete runtime measurement
2025-12-18 00:57:07 +01:00
Sarjuuk
a9a30d3106 Spells/Fixup
* don't display a power cost of Happiness (4)
   (looks like bogus dbc data)
2025-12-14 21:52:12 +01:00
Sarjuuk
6f6adc127e SmartAI/Fixup
* fix AI for npc texts that use target placeholders
2025-12-14 18:12:52 +01:00
Sarjuuk
d22d062cce Setup/DB
* fix setup if db is defined but inaccessible
2025-12-13 19:52:41 +01:00
Sarjuuk
92f949b3c6 Analytics/Tracking
* drag the tracking object a decade into the future
2025-12-13 16:15:59 +01:00
Sarjuuk
eb70065e0f Search/Fixup
* improve handling of invalid unicode sequences in urls (%xx).
   Page no longer breaks entirely, just misses the search term as the faulty string gets silently dropped.
 * don't perform searches if you don't have valid terms to search for
2025-12-12 16:05:19 +01:00
Sarjuuk
53182aedea Listviews/RefLoot
* tag ref loot rows as 'commonloot' to keep them out of the 'noteworthy loot' subtab
 * don't create icon links for ref loot rows
2025-12-07 15:12:46 +01:00
Sarjuuk
b85ee4ff23 Source/SpellLoot
* get additional items from spell_loot_template to source: Crafted
 * get loot from spells with effect 59 (Fast Loot) to source: Drop (obtained by item looting)
 * display spell_loot on ItemDetailPage if item has onUse spell
2025-12-05 21:32:26 +01:00
Sarjuuk
1e1ce29438 Icons
* fix names (still use original string for title cards, just not internals and files)
 * link manually created icons (holidays, classes, races) to icon db
 * use newly linked icons instead of hardcoded values for classes/races
 * implement used-by-classes filter on icons listing
 * fix internal name of race 5 (undead) which fucked up icons
 * version bump to invalidate cache
2025-12-04 15:14:32 +01:00
Sarjuuk
d6d589caba Items/Filter
* if 'sold by vendor' filter is selected, show vendor cost column
2025-12-02 23:09:36 +01:00
Sarjuuk
957f3bcf20 Template/JSGlobals
* fixed merging js globals from dynamic content into cached js globals
 * e.g. commenting with item markup on an item page will again create proper item links
2025-12-02 14:48:27 +01:00
Sarjuuk
ffffc16d63 Filter/Dropdowns
* group options for: currency, factions, itemcurrency & zones
 * update faction setup so faction "The Frostorn" are available and it does not rely on factiontemplate.dbc
 * fix broken purchasablewith* localization in locale DE
2025-11-30 18:05:38 +01:00
Sarjuuk
82376f9ead Loot/Fixup
* fix sending empty pctstack property to listview
2025-11-30 17:14:32 +01:00
Sarjuuk
f955c67026 Setup/Stats
* fix stat calculation for food by including triggered spells
2025-11-30 17:14:32 +01:00
Sarjuuk
adc0e16064 Itemsets/Boni
* maybe fix unreproducable error where itemset bonus description was null
 * also slight cleanup in itemset bonus code
2025-11-23 00:35:14 +01:00
Sarjuuk
b764200c2a SmartAI/Conditions
* embed Conditions into SmartAI table so we can evaluate CONDITION_SOURCE_TYPE_SMART_EVENT (22)
 * make SmartAI table display flexible
2025-11-20 23:50:23 +01:00
Sarjuuk
a5051c9bf5 Loot/Modes
* work against more correctly assigning instance mode to entities and loot
    - added manually collected data for difficulty versions of gameobjects, just boss chests for now.
      update setup/source to default object source to base difficulty version if able
    - update spelldifficulty table to contain the (likely) mapmode it will be used in
  * refactored class loot
    - implement loot mode indicators on listview for creature and gameobject loot
    - show 'drops' listview tab on instance zone page
    - fixes against tribute chest systems (toc / ulduar)
    - fix icc gunship battle chest ownership
2025-11-19 20:22:33 +01:00
Sarjuuk
f5654ae21f DateTime
* recreate date functions from javascript in new class DateTime
 * move date and time functions from Util to new class
 * fixes various cooldown messages for account recovery
2025-11-14 19:16:12 +01:00
Sarjuuk
1fe3690244 Cache/Fixup
* fix cache collision on list pages caused by improper encoding of category
 * fix cache key not encoding category values of int: 0
 * version bump to flush caches
2025-11-13 21:29:35 +01:00