[b28] amulet of telepathic range

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Dervis
Wyrmic
Posts: 263
Joined: Thu Oct 14, 2010 9:58 am

[b28] amulet of telepathic range

#1 Post by Dervis »

I had this helm of greater telepathy which worked fine... however I found this amulet of telepathic range +10 which I equipped just to see how far I'd be able to detect stuff and it completely broke my telepathy. My helm now only works with the amulet equipped and with the range it used to have.

Code: Select all

newEntity{
	power_source = {arcane=true},
	name = " of greater telepathy", suffix=true,
	level_range = {40, 50},
	greater_ego = 1,
	rarity = 120,
	cost = 25,
	wielder = {
		life_regen = -3,
		esp_all = 1,
	},
}
newEntity{
	power_source = {arcane=true},
	name = " of telepathic range", suffix=true,
	level_range = {40, 50},
	rarity = 15,
	cost = 15,
	wielder = {
		esp_range = 10,
	},
}

Code: Select all

	-- Compute ESP FOV, using cache
	if (self.esp_all and self.esp_all > 0) or next(self.esp) then
		self:computeFOV(self.esp_range or 10, "block_esp", function(x, y) game.level.map:applyESP(x, y, 0.6) end, true, true, true)
	end
Apparently the game doesn't initialize esp_range so this explains the behaviour.
This should be added to Actor.lua M_init (line 97 or so):
self.esp_range = 10

Or in alternative, Player lua 288:
self:computeFOV((self.esp_range or 0) + 10, "block_esp", function(x, y) game.level.map:applyESP(x, y, 0.6) end, true, true, true)

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

Re: [b28] amulet of telepathic range

#2 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