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
Lisa Greene
Tales of MajEyal
Commits
dcb3fbef
Commit
dcb3fbef
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Lost merchant will not generate antiamgic items for arcane characters
parent
00b85389
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/data/chats/last-hope-lost-merchant.lua
+16
-3
16 additions, 3 deletions
game/modules/tome/data/chats/last-hope-lost-merchant.lua
with
16 additions
and
3 deletions
game/modules/tome/data/chats/last-hope-lost-merchant.lua
+
16
−
3
View file @
dcb3fbef
...
...
@@ -98,11 +98,24 @@ local maker_list = function()
"dragonbone staff"
,
"living mindstar"
,
}
local
l
=
{}
local
l
=
{
{
"I've changed my mind."
,
jump
=
"welcome"
}
}
for
i
,
name
in
ipairs
(
bases
)
do
local
not_ps
=
player
:
attr
(
"forbid_arcane"
)
and
{
arcane
=
true
}
or
{
antimagic
=
true
}
local
force_themes
=
player
:
attr
(
"forbid_arcane"
)
and
{
'antimagic'
}
or
nil
local
not_ps
,
force_themes
if
player
:
attr
(
"forbid_arcane"
)
then
-- no magic gear for antimatic characters
not_ps
=
{
arcane
=
true
}
force_themes
=
{
'antimagic'
}
else
-- no antimagic gear for characters with arcane-powered classes
if
player
:
attr
(
"has_arcane_knowledge"
)
then
not_ps
=
{
antimagic
=
true
}
end
end
--game.log("Force_themes = %s, not_ps = %s", tostring(force_themes), tostring(not_ps and (not_ps.antimagic and "antimagic" or not_ps.arcane and "arcane")))
-- not_ps = table.merge(not_ps or {}, {
-- 'physical', 'mental', 'spell', 'defense', 'misc', 'fire', 'technique', 'psionic',
-- 'lightning', 'acid', 'mind', 'arcane', 'blight', 'nature',
-- 'temporal', 'light', 'dark', 'antimagic'
-- })
local
o
,
ok
repeat
o
=
game
.
zone
:
makeEntity
(
game
.
level
,
"object"
,
{
name
=
name
,
ignore_material_restriction
=
true
,
no_tome_drops
=
true
,
ego_filter
=
{
keep_egos
=
true
,
ego_chance
=-
1000
}},
nil
,
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