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
8420a752
Commit
8420a752
authored
5 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
TEST
Removed max level on all fixed artifacts. Material level already restrains them TEST
parent
b7a701c0
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/engines/default/engine/Entity.lua
+2
-0
2 additions, 0 deletions
game/engines/default/engine/Entity.lua
game/modules/tome/class/Game.lua
+7
-0
7 additions, 0 deletions
game/modules/tome/class/Game.lua
with
9 additions
and
0 deletions
game/engines/default/engine/Entity.lua
+
2
−
0
View file @
8420a752
...
...
@@ -1192,6 +1192,7 @@ function _M:loadList(file, no_default, res, mod, loaded)
local
e
=
newenv
.
class
.
new
(
t
,
no_default
)
if
type
(
mod
)
==
"function"
then
mod
(
e
)
end
if
_M
.
alter_entity_load
then
_M
.
alter_entity_load
(
e
)
end
res
[
#
res
+
1
]
=
e
if
t
.
define_as
then
res
[
t
.
define_as
]
=
e
end
...
...
@@ -1200,6 +1201,7 @@ function _M:loadList(file, no_default, res, mod, loaded)
importEntity
=
function
(
t
)
local
e
=
t
:
cloneFull
()
if
mod
then
mod
(
e
)
end
if
_M
.
alter_entity_load
then
_M
.
alter_entity_load
(
e
)
end
res
[
#
res
+
1
]
=
e
if
t
.
define_as
then
res
[
t
.
define_as
]
=
e
end
end
,
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/class/Game.lua
+
7
−
0
View file @
8420a752
...
...
@@ -45,6 +45,7 @@ local Actor = require "mod.class.Actor"
local
Party
=
require
"mod.class.Party"
local
Player
=
require
"mod.class.Player"
local
NPC
=
require
"mod.class.NPC"
local
Entity
=
require
"engine.Entity"
local
DebugConsole
=
require
"engine.DebugConsole"
local
FlyingText
=
require
"engine.FlyingText"
...
...
@@ -413,6 +414,12 @@ function _M:loaded()
Zone
.
alter_filter
=
function
(
...
)
return
self
.
state
:
entityFilterAlter
(
...
)
end
Zone
.
post_filter
=
function
(
...
)
return
self
.
state
:
entityFilterPost
(
...
)
end
Zone
.
ego_filter
=
function
(
...
)
return
self
.
state
:
egoFilter
(
...
)
end
Entity
.
alter_entity_load
=
function
(
e
)
if
e
:
getEntityKind
()
==
"object"
and
e
.
unique
and
not
e
.
randart
and
e
.
level_range
and
not
e
.
force_max_level_range
then
e
.
level_range
=
table
.
clone
(
e
.
level_range
)
e
.
level_range
[
2
]
=
nil
end
end
self
.
uiset
=
(
require
(
"mod.class.uiset."
..
(
config
.
settings
.
tome
.
uiset_mode
or
"Minimalist"
))).
new
()
...
...
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