Skip to content
Snippets Groups Projects
Commit c16ff481 authored by dg's avatar dg
Browse files

Summon talent now forces a max 2 level OOD

git-svn-id: http://svn.net-core.org/repos/t-engine4@4993 51575b47-30f0-44d4-a5cc-537603b46e54
parent eedef4ea
No related branches found
No related tags found
No related merge requests found
......@@ -187,24 +187,9 @@ function _M:init()
mainicons = {x=0, y=0, name="Game Actions"},
}
local w, h = core.display.size()
local th = 52
if config.settings.tome.hotkey_icons then th = (4 + config.settings.tome.hotkey_icons_size) * config.settings.tome.hotkey_icons_rows end
local hup = h - th
self:resetPlaces()
self.places = {
player = {x=0, y=0, scale=1, a=1},
resources = {x=0, y=111, scale=1, a=1},
minimap = {x=w - 239, y=0, scale=1, a=1},
buffs = {x=w - 40, y=200, scale=1, a=1},
party = {x=pf_bg[6], y=0, scale=1, a=1},
gamelog = {x=0, y=hup - 210, w=math.floor(w/2), h=200, scale=1, a=1},
chatlog = {x=math.floor(w/2), y=hup - 210, w=math.floor(w/2), h=200, scale=1, a=1},
mainicons = {x=w - tb_bg[6] * 0.5, y=h - tb_bg[7] * 5 * 0.5 - 5, scale=1, a=1},
hotkeys = {x=10, y=h - th, w=w-60, h=th, scale=1, a=1},
}
table.merge(self.places, config.settings.tome.uiset_minimalist and config.settings.tome.uiset_minimalist.places or {}, true)
local w, h = core.display.size()
-- Adjsut to account for resolution change
if config.settings.tome.uiset_minimalist and config.settings.tome.uiset_minimalist.save_size then
......@@ -231,6 +216,26 @@ function _M:checkGameOption(name)
return not list[name]
end
function _M:resetPlaces()
local w, h = core.display.size()
local th = 52
if config.settings.tome.hotkey_icons then th = (4 + config.settings.tome.hotkey_icons_size) * config.settings.tome.hotkey_icons_rows end
local hup = h - th
self.places = {
player = {x=0, y=0, scale=1, a=1},
resources = {x=0, y=111, scale=1, a=1},
minimap = {x=w - 239, y=0, scale=1, a=1},
buffs = {x=w - 40, y=200, scale=1, a=1},
party = {x=pf_bg[6], y=0, scale=1, a=1},
gamelog = {x=0, y=hup - 210, w=math.floor(w/2), h=200, scale=1, a=1},
chatlog = {x=math.floor(w/2), y=hup - 210, w=math.floor(w/2), h=200, scale=1, a=1},
mainicons = {x=w - tb_bg[6] * 0.5, y=h - tb_bg[7] * 5 * 0.5 - 5, scale=1, a=1},
hotkeys = {x=10, y=h - th, w=w-60, h=th, scale=1, a=1},
}
end
function _M:boundPlaces(w, h)
w = w or game.w
h = h or game.h
......
......@@ -355,6 +355,8 @@ newTalent{
end
-- Find an actor with that filter
filter = table.clone(filter)
filter.max_ood = filter.max_ood or 2
local m = game.zone:makeEntity(game.level, "actor", filter, nil, true)
if m then
if not filter.hasxp then m.exp_worth = 0 end
......
* autoexport character entity on death/win(/save?)
* RSS feed of events in a character's life, exportable to FB
* PIC TALENTS AT LVL 45 FOR HIGH STAT, CLASS DEPENDANT
* redo shops
* redo wands
* random elites wandering the levels
* make low level more fun
* balance randboss
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment