Page 1 of 1

[b28] amulet of telepathic range

Posted: Wed Jun 08, 2011 10:32 am
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)

Re: [b28] amulet of telepathic range

Posted: Sat Jun 11, 2011 1:02 pm
by darkgod
fixed