[1.1.0] Cannot make lapis lazuli alchemist gems

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
feanor70115
Wayist
Posts: 16
Joined: Sat Jun 04, 2011 7:58 pm

[1.1.0] Cannot make lapis lazuli alchemist gems

#1 Post by feanor70115 »

As it says. My alchemist is stuck using aquamarines to restore his mana when necessary.

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: [1.1.0] Cannot make lapis lazuli alchemist gems

#2 Post by Hachem_Muche »

This is happening for fire opals as well. The game defined name for alchemists gems is not being generated properly. Fix:

Code: Select all

 game/modules/tome/data/general/objects/gem.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/data/general/objects/gem.lua b/game/modules/tome/data/general/objects/gem.lua
index 10367ca..a927a0c 100644
--- a/game/modules/tome/data/general/objects/gem.lua
+++ b/game/modules/tome/data/general/objects/gem.lua
@@ -53,7 +53,7 @@ local function newGem(name, image, cost, rarity, color, min_level, max_level, ti
 		attack_type = colors_attacks[color],
 	}
 	-- Alchemist gems, not lootable, only created by talents
-	newEntity{ base = "BASE_GEM", define_as = "ALCHEMIST_GEM_"..name:upper(),
+	newEntity{ base = "BASE_GEM", define_as = "ALCHEMIST_GEM_"..name:gsub(" ", "_"):upper(),
 		name = "alchemist "..name:lower(), type='alchemist-gem', subtype = color,
 		slot = "QUIVER",
 		color = colors[color:upper()], image=image,
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [1.1.0] Cannot make lapis lazuli alchemist gems

#3 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply