Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
6887f457
Commit
6887f457
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Glimmerstone has a description
parent
b438bf49
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/Game.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/class/Game.lua
game/modules/tome/data/general/events/glimmerstone.lua
+3
-1
3 additions, 1 deletion
game/modules/tome/data/general/events/glimmerstone.lua
with
4 additions
and
2 deletions
game/modules/tome/class/Game.lua
+
1
−
1
View file @
6887f457
...
...
@@ -1500,7 +1500,7 @@ function _M:setupCommands()
end
end
,
[{
"_g"
,
"ctrl"
}]
=
function
()
if
config
.
settings
.
cheat
then
--do return end
local
f
,
err
=
loadfile
(
"/data/general/events/
fearscape-portal
.lua"
)
local
f
,
err
=
loadfile
(
"/data/general/events/
glimmerstone
.lua"
)
print
(
f
,
err
)
setfenv
(
f
,
setmetatable
({
level
=
self
.
level
,
zone
=
self
.
zone
},
{
__index
=
_G
}))
print
(
pcall
(
f
))
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/general/events/glimmerstone.lua
+
3
−
1
View file @
6887f457
...
...
@@ -22,8 +22,10 @@ local x, y = game.state:findEventGrid(level)
if
not
x
then
return
false
end
local
g
=
game
.
level
.
map
(
x
,
y
,
engine
.
Map
.
TERRAIN
):
cloneFull
()
g
=
require
(
"engine.Object"
).
new
(
g
)
g
=
require
(
"mod.class.Object"
).
new
(
g
)
g
.
identified
=
true
g
.
name
=
"glimmerstone"
g
.
desc
=
"It shimmers and changes the light all around. This is dazling!"
g
.
display
=
'&'
g
.
color_r
=
255
g
.
color_g
=
255
g
.
color_b
=
255
g
.
notice
=
true
g
:
removeAllMOs
()
if
engine
.
Map
.
tiles
.
nicer_tiles
then
...
...
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