Skip to content
Snippets Groups Projects
Commit f4248e4f authored by dg's avatar dg
Browse files

Temporal rift is only usable once

Temporal rift zone is less dark


git-svn-id: http://svn.net-core.org/repos/t-engine4@2521 51575b47-30f0-44d4-a5cc-537603b46e54
parent 485ff761
No related branches found
No related tags found
No related merge requests found
......@@ -29,4 +29,9 @@ newEntity{
show_tooltip = true,
desc = [[The rift leads somewhere ..]],
change_level = 1, change_zone = "temporal-rift",
change_level_check = function() -- Forbid going back
if not game.player:hasQuest("temporal-rift") then return false end
game.log("The rift is too instable to cross it again.")
return true
end
}
......@@ -39,8 +39,8 @@ return {
persistent = "zone",
generator = {
},
color_shown = {0.4, 0.3, 0.5, 1},
color_obscure = {0.4*0.6, 0.3*0.6, 0.5*0.6, 1},
color_shown = {0.7, 0.6, 0.8, 1},
color_obscure = {0.7*0.6, 0.6*0.6, 0.8*0.6, 1},
ambient_music = "Through the Dark Portal.ogg",
levels =
{
......
......@@ -2179,7 +2179,9 @@ static int lua_fs_umount(lua_State *L)
static int lua_fs_get_real_path(lua_State *L)
{
const char *src = luaL_checkstring(L, 1);
lua_pushstring(L, PHYSFS_getDependentPath(src));
char path = PHYSFS_getDependentPath(src);
lua_pushstring(L, path);
free(path);
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment