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
K'van
Tales of MajEyal
Commits
80835b94
Commit
80835b94
authored
13 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
fix
git-svn-id:
http://svn.net-core.org/repos/t-engine4@3084
51575b47-30f0-44d4-a5cc-537603b46e54
parent
99250fae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/GameState.lua
+12
-10
12 additions, 10 deletions
game/modules/tome/class/GameState.lua
with
12 additions
and
10 deletions
game/modules/tome/class/GameState.lua
+
12
−
10
View file @
80835b94
...
...
@@ -215,7 +215,7 @@ function _M:generateRandart(add, base, lev)
game
.
level
.
level
=
lev
-- Get a base object
base
=
base
or
game
.
zone
:
makeEntity
(
game
.
level
,
"object"
,
{
no_tome_drops
=
true
,
ego_filter
=
{
keep_egos
=
true
,
ego_chance
=-
1000
},
special
=
function
(
e
)
base
=
base
or
game
.
zone
:
makeEntity
(
game
.
level
,
"object"
,
{
ingore_material_restriction
=
true
,
no_tome_drops
=
true
,
ego_filter
=
{
keep_egos
=
true
,
ego_chance
=-
1000
},
special
=
function
(
e
)
return
(
not
e
.
unique
and
e
.
randart_able
)
and
(
not
e
.
material_level
or
e
.
material_level
>=
2
)
and
true
or
false
end
},
nil
,
true
)
if
not
base
then
game
.
level
.
level
=
oldlev
return
end
...
...
@@ -914,16 +914,18 @@ end
function
_M
:
entityFilter
(
zone
,
e
,
filter
,
type
)
if
type
==
"object"
then
local
min_mlvl
=
util
.
getval
(
zone
.
min_material_level
)
local
max_mlvl
=
util
.
getval
(
zone
.
max_material_level
)
if
min_mlvl
then
if
not
e
.
material_level
then
return
true
end
if
e
.
material_level
<
min_mlvl
then
return
false
end
end
if
not
filter
.
ingore_material_restriction
then
local
min_mlvl
=
util
.
getval
(
zone
.
min_material_level
)
local
max_mlvl
=
util
.
getval
(
zone
.
max_material_level
)
if
min_mlvl
then
if
not
e
.
material_level
then
return
true
end
if
e
.
material_level
<
min_mlvl
then
return
false
end
end
if
max_mlvl
then
if
not
e
.
material_level
then
return
true
end
if
e
.
material_level
>
max_mlvl
then
return
false
end
if
max_mlvl
then
if
not
e
.
material_level
then
return
true
end
if
e
.
material_level
>
max_mlvl
then
return
false
end
end
end
return
true
else
...
...
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