Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Otowa Kotori
Tales of MajEyal
Commits
c5ede4cc
Commit
c5ede4cc
authored
5 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Psiblades putting charms on cooldown and adding back stuff to the hotkeys
parent
b44d32df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/Player.lua
+9
-6
9 additions, 6 deletions
game/modules/tome/class/Player.lua
game/modules/tome/data/talents/gifts/mindstar-mastery.lua
+4
-0
4 additions, 0 deletions
game/modules/tome/data/talents/gifts/mindstar-mastery.lua
with
13 additions
and
6 deletions
game/modules/tome/class/Player.lua
+
9
−
6
View file @
c5ede4cc
...
...
@@ -1426,13 +1426,16 @@ end
-- This doesnt call the base interface onWear, it copies the code because we need some tricky stuff
function
_M
:
onWear
(
o
,
slot
,
bypass_set
)
mod
.
class
.
Actor
.
onWear
(
self
,
o
,
slot
,
bypass_set
)
self
:
cooldownWornObject
(
o
)
if
self
.
hotkey
and
o
:
canUseObject
()
and
config
.
settings
.
tome
.
auto_hotkey_object
and
not
o
.
no_auto_hotkey
then
local
position
local
name
=
o
:
getName
{
no_count
=
true
,
force_id
=
true
,
no_add_name
=
true
}
if
not
self
:
isHotkeyBound
(
"inventory"
,
name
)
then
self
:
addNewHotkey
(
"inventory"
,
name
)
if
not
self
:
attr
(
"on_wear_simple_reload"
)
then
self
:
cooldownWornObject
(
o
)
if
self
.
hotkey
and
o
:
canUseObject
()
and
config
.
settings
.
tome
.
auto_hotkey_object
and
not
o
.
no_auto_hotkey
then
local
position
local
name
=
o
:
getName
{
no_count
=
true
,
force_id
=
true
,
no_add_name
=
true
}
if
not
self
:
isHotkeyBound
(
"inventory"
,
name
)
then
self
:
addNewHotkey
(
"inventory"
,
name
)
end
end
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/gifts/mindstar-mastery.lua
+
4
−
0
View file @
c5ede4cc
...
...
@@ -44,9 +44,11 @@ newTalent{
tmpid
=
self
:
addTemporaryValue
(
"psiblades_active"
,
self
:
getTalentLevel
(
t
)),
}
self
:
attr
(
"on_wear_simple_reload"
,
1
)
for
i
,
o
in
ipairs
(
self
:
getInven
(
"MAINHAND"
)
or
{})
do
self
:
onTakeoff
(
o
,
self
.
INVEN_MAINHAND
,
true
)
self
:
onWear
(
o
,
self
.
INVEN_MAINHAND
,
true
)
end
for
i
,
o
in
ipairs
(
self
:
getInven
(
"OFFHAND"
)
or
{})
do
self
:
onTakeoff
(
o
,
self
.
INVEN_OFFHAND
,
true
)
self
:
onWear
(
o
,
self
.
INVEN_OFFHAND
,
true
)
end
for
i
,
o
in
ipairs
(
self
:
getInven
(
"PSIONIC_FOCUS"
)
or
{})
do
self
:
onTakeoff
(
o
,
self
.
INVEN_PSIONIC_FOCUS
,
true
)
self
:
onWear
(
o
,
self
.
INVEN_PSIONIC_FOCUS
,
true
)
end
self
:
attr
(
"on_wear_simple_reload"
,
-
1
)
self
:
updateModdableTile
()
return
r
...
...
@@ -54,9 +56,11 @@ newTalent{
deactivate
=
function
(
self
,
t
,
p
)
self
:
removeTemporaryValue
(
"psiblades_active"
,
p
.
tmpid
)
self
:
attr
(
"on_wear_simple_reload"
,
1
)
for
i
,
o
in
ipairs
(
self
:
getInven
(
"MAINHAND"
)
or
{})
do
self
:
onTakeoff
(
o
,
self
.
INVEN_MAINHAND
,
true
)
self
:
checkMindstar
(
o
)
self
:
onWear
(
o
,
self
.
INVEN_MAINHAND
,
true
)
end
for
i
,
o
in
ipairs
(
self
:
getInven
(
"OFFHAND"
)
or
{})
do
self
:
onTakeoff
(
o
,
self
.
INVEN_OFFHAND
,
true
)
self
:
checkMindstar
(
o
)
self
:
onWear
(
o
,
self
.
INVEN_OFFHAND
,
true
)
end
for
i
,
o
in
ipairs
(
self
:
getInven
(
"PSIONIC_FOCUS"
)
or
{})
do
self
:
onTakeoff
(
o
,
self
.
INVEN_PSIONIC_FOCUS
,
true
)
self
:
checkMindstar
(
o
)
self
:
onWear
(
o
,
self
.
INVEN_PSIONIC_FOCUS
,
true
)
end
self
:
attr
(
"on_wear_simple_reload"
,
-
1
)
self
:
updateModdableTile
()
return
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment