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

To alleviate problems with silly OSX and right clicks; alt+left click will...

To alleviate problems with silly OSX and right clicks; alt+left click will function everywhere as a right click

git-svn-id: http://svn.net-core.org/repos/t-engine4@5795 51575b47-30f0-44d4-a5cc-537603b46e54
parent 399896d0
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,9 @@ newEntity{ base = "BASE_NPC_MULTIHUED_DRAKE",
if self.color_switch <= 0 then
self.color_switch = 2
-- Reset cooldowns
local db_cd = self.talents_cd[self.T_DRACONIC_BODY]
self.talents_cd = {}
self.talents_cd[self.T_DRACONIC_BODY] = db_cd
self:incEquilibrium(-100)
self:incMana(100)
self:incNegative(100)
......
......@@ -1588,7 +1588,7 @@ newEntity{ base = "BASE_LONGSWORD", define_as = "RIFT_SWORD",
special_on_hit = {desc="20% to slow target", fct=function(combat, who, target)
if not rng.percent(20) then return end
local dam = (20 + who:getMag()/2)
local slow = (10 + who:getMag()/5)
local slow = (10 + who:getMag()/5)/100
who:project({type="hit", range=1}, target.x, target.y, engine.DamageType.CHRONOSLOW, {dam=dam, slow=slow})
end},
},
......
......@@ -28,7 +28,7 @@ newTalent{
activate = function(self, t)
game:playSoundNear(self, "talents/flame")
return {
max_vim = self:addTemporaryValue("max_vim", self:getTalentLevel(t) * 15),
vim = self:addTemporaryValue("max_vim", self:getTalentLevel(t) * 15),
}
end,
deactivate = function(self, t, p)
......
......@@ -346,7 +346,15 @@ void on_event(SDL_Event *event)
switch (event->button.button)
{
case SDL_BUTTON_LEFT:
#if 1
{
SDL_Keymod _pKeyState = SDL_GetModState();
if (_pKeyState & KMOD_ALT) lua_pushstring(L, "right");
else lua_pushstring(L, "left");
}
#else
lua_pushstring(L, "left");
#endif
break;
case SDL_BUTTON_MIDDLE:
lua_pushstring(L, "middle");
......
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