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
39e289e8
Commit
39e289e8
authored
13 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
transo compare
git-svn-id:
http://svn.net-core.org/repos/t-engine4@3540
51575b47-30f0-44d4-a5cc-537603b46e54
parent
06c851ba
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/zones/shertul-fortress/objects.lua
+3
-3
3 additions, 3 deletions
game/modules/tome/data/zones/shertul-fortress/objects.lua
with
3 additions
and
3 deletions
game/modules/tome/data/zones/shertul-fortress/objects.lua
+
3
−
3
View file @
39e289e8
...
...
@@ -49,17 +49,17 @@ When activated it will prompt to destroy items on the floor, if there are none i
-- On the floor or inventory
if
game
.
level
.
map
:
getObjectTotal
(
who
.
x
,
who
.
y
)
>
0
then
local
x
,
y
=
who
.
x
,
who
.
y
local
d
=
require
(
"
engine
.dialogs.ShowPickupFloor"
).
new
(
"Transmogrify"
,
x
,
y
,
self
.
transmo_filter
,
function
(
o
,
idx
)
local
d
=
require
(
"
mod
.dialogs.ShowPickupFloor"
).
new
(
"Transmogrify"
,
x
,
y
,
self
.
transmo_filter
,
function
(
o
,
idx
)
local
price
=
o
:
getPrice
()
*
o
:
getNumber
()
*
self
.
pricemod
(
o
)
price
=
math.min
(
price
,
25
)
game
.
level
.
map
:
removeObject
(
x
,
y
,
idx
)
who
:
incMoney
(
price
)
who
:
hasQuest
(
"shertul-fortress"
):
gain_energy
(
price
/
10
)
game
.
log
(
"You gain %0.2f gold from the transmogrification of %s."
,
price
,
o
:
getName
{
do_count
=
true
,
do_color
=
true
})
end
,
"Transmogrify all"
)
end
,
"Transmogrify all"
,
who
)
game
:
registerDialog
(
d
)
else
local
d
=
require
(
"
engine
.dialogs.ShowInventory"
).
new
(
"Transmogrify"
,
who
:
getInven
(
"INVEN"
),
self
.
transmo_filter
,
function
(
o
,
idx
)
local
d
=
require
(
"
mod
.dialogs.ShowInventory"
).
new
(
"Transmogrify"
,
who
:
getInven
(
"INVEN"
),
self
.
transmo_filter
,
function
(
o
,
idx
)
self
:
transmo_inven
(
who
,
inven
,
idx
,
o
)
end
,
who
)
game
:
registerDialog
(
d
)
...
...
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