Toggle menu
2.1K
1.6K
8
19.2K
Divinity Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Any DOS2/data: Difference between revisions

From Divinity Wiki
No edit summary
No edit summary
Line 16: Line 16:
air_resistance_potion = {
air_resistance_potion = {
aliases = {'air resistance potion'},
aliases = {'air resistance potion'},
image = {"Item DOS2 Medium Air Resistance Potion Icon.png"},
image = "Item DOS2 Medium Air Resistance Potion Icon.png",
},
},
antler = {
antler = {

Revision as of 08:45, 13 April 2026

Documentation for this module may be created at Module:Any DOS2/data/doc

-- This module stores icon data for [[Module:Any DOS2]].

--------------------------------------------------------------------------------
-- Icon data
--------------------------------------------------------------------------------

local data = {
	aerotheurge_skillbook = {
		aliases = {'aerotheurge skillbook'},
		image = "Item DOS2 Blank Air Skillbook Icon.png",
	},
	air_essence = {
		aliases = {'air essence'},
		image = "Item DOS2 Air Essence Icon.png",
	},
	air_resistance_potion = {
		aliases = {'air resistance potion'},
		image = "Item DOS2 Medium Air Resistance Potion Icon.png",
	},
	antler = {
		image = "Item DOS2 Antler Icon.png",
	},
	arrow_or_shaft = {
		aliases = {'arrow or shaft'},
		image = "Item DOS2 Arrow Shaft Icon.png",
	},
	beer_source = {
		aliases = {'beer source'},
		image = "Item DOS2 Mug of Beer Icon.png",
	},
	bone = {
		image = "Item DOS2 Bone Icon.png",
	},
	chicken_foot = {
		aliases = {'chicken foot'},
		image = "Item DOS2 Chicken Foot Icon.png",
	},
	cutting_tool = {
		aliases = {'cutting tool'},
		image = "Item DOS2 Pocket Knife Icon.png",
	},
	earth_essence = {
		aliases = {'earth essence'},
		image = "Item DOS2 Earth Essence Icon.png",
	},
	fire_essence = {
		aliases = {'fire essence'},
		image = "Item DOS2 Fire Essence Icon.png",
	},
	fish = {
		image = "Item DOS2 Herring Icon.png",
	},
	geomancer_skillbook = {
		aliases = {'geomancer skillbook'},
		image = "Item DOS2 Blank Earth Skillbook Icon.png",
	},
	gold = {
		image = "Item DOS2 Gold Cup Icon.png",
	},
	hammer = {
		image = "Item DOS2 Hammer Icon.png",
	},
	hydrosophist_skillbook = {
		aliases = {'hydrosophist skillbook'},
		image = "Item DOS2 Blank Water Skillbook Icon.png",
	},
	key = {
		image = "Bronze Key DOS Icon.png",
	},
	knife = {
		image = "Item DOS2 Knife Icon.png",
	},
	life_essence = {
		aliases = {'life essence'},
		image = "Item DOS2 Life Essence Icon.png",
	},
	meat = {
		image = "Item DOS2 Raw Red Meat Icon.png",
	},
	metal = {
		image = "Item DOS2 Metal Scraps Icon.png",
	},
	milk = {
		image = "Item DOS2 Pail Icon.png",
	},
	necromancer_skillbook = {
		aliases = {'necromancer skillbook'},
		image = "Item DOS2 Blank Necromancy Skillbook Icon.png",
	},
	oil_source = {
		aliases = {'oil source'},
		image = "Item DOS2 Oil Barrel Icon.png",
	},
	poison_source = {
		aliases = {'poison source'},
		image = "Item DOS2 Poison Barrel Icon.png",
	},
	polymorph_skillbook = {
		aliases = {'polymorph skillbook'},
		image = "Item DOS2 Blank Polymorph Skillbook Icon.png",
	},
	pyrokinetic_skillbook = {
		aliases = {'pyrokinetic skillbook'},
		image = "Item DOS2 Blank Fire Skillbook Icon.png",
	},
	shadow_essence = {
		aliases = {'shadow essence'},
		image = "Item DOS2 Shadow Essence Icon.png",
	},
	summoning_skillbook = {
		aliases = {'summoning skillbook'},
		image = "Item DOS2 Blank Summoning Skillbook Icon.png",
	},
	tormented_soul = {
		aliases = {'tormented soul'},
		image = "Item DOS2 High Quality Tormented Soul Icon.png",
	},
	void_tainted_fish = {
		aliases = {'void-tainted fish'},
		image = "Item DOS2 Plaice Icon.png",
	},
	water_essence = {
		aliases = {'water essence'},
		image = "Item DOS2 Water Essence Icon.png",
	},
	water_source = {
		aliases = {'water source'},
		image = "Item DOS2 Water Barrel 2 Icon.png",
	},
	wine_source = {
		aliases = {'wine source'},
		image = "Item DOS2 Bottle of Wine Icon.png",
	},
	_DEFAULT = {
		image = "Status DOS2 Source-Muted Icon.png",
		link = false,
	}
}

--------------------------------------------------------------------------------
-- End icon data
--------------------------------------------------------------------------------

-- Make aliases work the same as normal keys, and remove the "aliases" subtables.
local ret= {}
for code, iconData in pairs(data) do
	iconData.canonicalCode = code
	if iconData.aliases then
		for _, alias in ipairs(iconData.aliases) do
			ret[alias] = iconData
		end
		iconData.aliases = nil
	end
	ret[code] = iconData
end

return ret