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
bebe4ccd
Commit
bebe4ccd
authored
13 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
hum
git-svn-id:
http://svn.net-core.org/repos/t-engine4@4097
51575b47-30f0-44d4-a5cc-537603b46e54
parent
644c96c1
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/Store.lua
+5
-7
5 additions, 7 deletions
game/engines/default/engine/Store.lua
game/modules/tome/class/Store.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/class/Store.lua
with
6 additions
and
8 deletions
game/engines/default/engine/Store.lua
+
5
−
7
View file @
bebe4ccd
...
...
@@ -57,13 +57,11 @@ function _M:loadup(level, zone, force_nb)
if
not
self
:
canRestock
()
then
return
end
local
inven
=
self
:
getInven
(
"INVEN"
)
if
s
.
empty_before_restock
then
for
i
=
#
inven
,
1
,
-
1
do
local
e
=
inven
[
i
]
inven
[
i
]
=
nil
if
not
e
.
__store_forget
then
e
:
removed
()
end
for
i
=
#
inven
,
1
,
-
1
do
local
e
=
inven
[
i
]
inven
[
i
]
=
nil
if
(
s
.
empty_before_restock
and
not
e
.
__store_forget
)
or
(
e
.
__force_store_forget
)
then
e
:
removed
()
end
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/class/Store.lua
+
1
−
1
View file @
bebe4ccd
...
...
@@ -127,7 +127,7 @@ function _M:onSell(who, o, item, nb, before)
if
price
<=
0
or
nb
<=
0
then
return
end
price
=
math.min
(
price
*
nb
,
self
.
store
.
purse
*
nb
)
who
:
incMoney
(
price
)
o
:
forAllStack
(
function
(
so
)
so
.
__store_forget
=
true
end
)
-- Make sure the store does
never
forget about it
o
:
forAllStack
(
function
(
so
)
so
.
__
force_
store_forget
=
true
end
)
-- Make sure the store does forget about it
when it restocks
end
--- Override the default
...
...
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