mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 13:00:50 +00:00
Split the vendor price tables into their own manifests
Turtle's pfSellData moves out of modules\turtle-wow.lua into env\selldata_turtle.lua, matching env\selldata.lua for the stock list, and each is pulled in by the manifest for its client: init\stock.xml from pfUI_ClassicAPI.toc, init\turtle.xml from pfUI_Turtle.toc. Either way it loads after init\env.xml and replaces the empty pfSellData declared there. Turtle's prices used to be assigned inside the turtle-wow module body, which put them on pfUI.env and skipped them entirely when that module was disabled. At file scope they land on _G and apply either way.
This commit is contained in:
Vendored
-47
@@ -1,44 +1,3 @@
|
||||
CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS or {
|
||||
["WARRIOR"] = {0, 0.25, 0, 0.25},
|
||||
["MAGE"] = {0.25, 0.49609375, 0, 0.25},
|
||||
["ROGUE"] = {0.49609375, 0.7421875, 0, 0.25},
|
||||
["DRUID"] = {0.7421875, 0.98828125, 0, 0.25},
|
||||
["HUNTER"] = {0, 0.25, 0.25, 0.5},
|
||||
["SHAMAN"] = {0.25, 0.49609375, 0.25, 0.5},
|
||||
["PRIEST"] = {0.49609375, 0.7421875, 0.25, 0.5},
|
||||
["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5},
|
||||
["PALADIN"] = {0, 0.25, 0.5, 0.75},
|
||||
["DEATHKNIGHT"] = {0.25, .5, 0.5, .75},
|
||||
["GM"] = {0.5, 0.73828125, 0.5, .75},
|
||||
}
|
||||
|
||||
-- race icons live in Interface\Glues\CharacterCreate\UI-CharacterCreate-Races
|
||||
-- keyed by RACEKEY_GENDER (englishRace .. sex); mirrors the GlueXML table,
|
||||
-- which isn't loaded in-world. includes the Turtle-specific BloodElf/Goblin.
|
||||
RACE_ICON_TCOORDS = RACE_ICON_TCOORDS or {
|
||||
["HUMAN_MALE"] = {0, 0.125, 0, 0.25},
|
||||
["DWARF_MALE"] = {0.125, 0.25, 0, 0.25},
|
||||
["GNOME_MALE"] = {0.25, 0.375, 0, 0.25},
|
||||
["NIGHTELF_MALE"] = {0.375, 0.5, 0, 0.25},
|
||||
["TAUREN_MALE"] = {0, 0.125, 0.25, 0.5},
|
||||
["SCOURGE_MALE"] = {0.125, 0.25, 0.25, 0.5},
|
||||
["TROLL_MALE"] = {0.25, 0.375, 0.25, 0.5},
|
||||
["ORC_MALE"] = {0.375, 0.5, 0.25, 0.5},
|
||||
["BLOODELF_MALE"] = {0.5, 0.625, 0.25, 0.5},
|
||||
["GOBLIN_MALE"] = {0.5, 0.625, 0, 0.25},
|
||||
|
||||
["HUMAN_FEMALE"] = {0, 0.125, 0.5, 0.75},
|
||||
["DWARF_FEMALE"] = {0.125, 0.25, 0.5, 0.75},
|
||||
["GNOME_FEMALE"] = {0.25, 0.375, 0.5, 0.75},
|
||||
["NIGHTELF_FEMALE"] = {0.375, 0.5, 0.5, 0.75},
|
||||
["TAUREN_FEMALE"] = {0, 0.125, 0.75, 1.0},
|
||||
["SCOURGE_FEMALE"] = {0.125, 0.25, 0.75, 1.0},
|
||||
["TROLL_FEMALE"] = {0.25, 0.375, 0.75, 1.0},
|
||||
["ORC_FEMALE"] = {0.375, 0.5, 0.75, 1.0},
|
||||
["BLOODELF_FEMALE"] = {0.5, 0.625, 0.75, 1.0},
|
||||
["GOBLIN_FEMALE"] = {0.5, 0.625, 0.5, 0.75},
|
||||
}
|
||||
|
||||
-- barlength = {[formfactor]={cols, rows}}
|
||||
pfGridmath = {
|
||||
[1] = {{1,1}},
|
||||
@@ -89,9 +48,3 @@ for i=1,40 do
|
||||
pfValidUnits["nameplate" .. i] = true
|
||||
pfValidUnits["nameplate" .. i .. "target"] = true
|
||||
end
|
||||
|
||||
-- Vendor-buy prices. env\selldata.lua fills this in on stock clients; on
|
||||
-- Turtle, modules\turtle-wow.lua supplies the server's own table. Declared
|
||||
-- empty here so modules\sellvalue.lua always has a table to index, even with
|
||||
-- the turtle-wow module disabled.
|
||||
pfSellData = {}
|
||||
|
||||
+38
-3
@@ -1,11 +1,46 @@
|
||||
-- Vendor-buy prices for the stock 1.12 item set. Pulled in by
|
||||
-- pfUI_ClassicAPI.toc only: on Turtle, modules\turtle-wow.lua replaces
|
||||
-- pfSellData wholesale with the server's own table.
|
||||
RACE_ICON_TCOORDS = RACE_ICON_TCOORDS or {
|
||||
["HUMAN_MALE"] = {0, 0.25, 0, 0.25},
|
||||
["DWARF_MALE"] = {0.25, 0.5, 0, 0.25},
|
||||
["GNOME_MALE"] = {0.5, 0.75, 0, 0.25},
|
||||
["NIGHTELF_MALE"] = {0.75, 1.0, 0, 0.25},
|
||||
|
||||
["TAUREN_MALE"] = {0, 0.25, 0.25, 0.5},
|
||||
["SCOURGE_MALE"] = {0.25, 0.5, 0.25, 0.5},
|
||||
["TROLL_MALE"] = {0.5, 0.75, 0.25, 0.5},
|
||||
["ORC_MALE"] = {0.75, 1.0, 0.25, 0.5},
|
||||
|
||||
["HUMAN_FEMALE"] = {0, 0.25, 0.5, 0.75},
|
||||
["DWARF_FEMALE"] = {0.25, 0.5, 0.5, 0.75},
|
||||
["GNOME_FEMALE"] = {0.5, 0.75, 0.5, 0.75},
|
||||
["NIGHTELF_FEMALE"] = {0.75, 1.0, 0.5, 0.75},
|
||||
|
||||
["TAUREN_FEMALE"] = {0, 0.25, 0.75, 1.0},
|
||||
["SCOURGE_FEMALE"] = {0.25, 0.5, 0.75, 1.0},
|
||||
["TROLL_FEMALE"] = {0.5, 0.75, 0.75, 1.0},
|
||||
["ORC_FEMALE"] = {0.75, 1.0, 0.75, 1.0},
|
||||
};
|
||||
|
||||
CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS or {
|
||||
["WARRIOR"] = {0, 0.25, 0, 0.25},
|
||||
["MAGE"] = {0.25, 0.49609375, 0, 0.25},
|
||||
["ROGUE"] = {0.49609375, 0.7421875, 0, 0.25},
|
||||
["DRUID"] = {0.7421875, 0.98828125, 0, 0.25},
|
||||
["HUNTER"] = {0, 0.25, 0.25, 0.5},
|
||||
["SHAMAN"] = {0.25, 0.49609375, 0.25, 0.5},
|
||||
["PRIEST"] = {0.49609375, 0.7421875, 0.25, 0.5},
|
||||
["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5},
|
||||
["PALADIN"] = {0, 0.25, 0.5, 0.75}
|
||||
};
|
||||
|
||||
-- Vendor-buy prices for the stock 1.12 item set. Pulled in by init\stock.xml,
|
||||
-- so pfUI_ClassicAPI.toc only: Turtle has its own list in
|
||||
-- env\tables_turtle.lua, loaded from init\turtle.xml instead.
|
||||
|
||||
-- This table makes me sick.
|
||||
-- itemid = buyPrice (copper). Sell price comes from C_Item.GetItemSellPriceByID;
|
||||
-- this table only carries the curated vendor-buy price (which isn't a static
|
||||
-- engine field — it's collected from real vendor encounters).
|
||||
|
||||
pfSellData = {
|
||||
[25]=35, [35]=47, [36]=38, [37]=38, [38]=1, [39]=5,
|
||||
[40]=4, [41]=2, [42]=2, [43]=4, [44]=4, [45]=1,
|
||||
Vendored
+2991
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user