Decaying levels remotely?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Decaying levels remotely?

#1 Post by yufra »

This question came up on the Dumb questions thread and I thought I would address it here. The issue is decaying NPCs/items, specifically artifacts, from levels. I believe that the current code only decays when you ENTER the level after a period of time, and if an artifact is created on a level that you never return to the artifact is effectively removed from the game. Persistent levels are added to zone.memory_levels and persistent zones are saved directly to the save file. It looks like a weak table of uids to be decayed when entering a level could actually be handled within the Game turn, allowing say unique NPCs/objects to be decayed when they are outside of the level. The idea needs to be fleshed out a bit more, pass the DG test and get coded of course. Initial thoughts down, though. :D
<DarkGod> lets say it's intended

ikarius
Low Yeek
Posts: 7
Joined: Mon Jan 31, 2011 2:06 pm

Re: Decaying levels remotely?

#2 Post by ikarius »

Why not do this on entering any level, instead of on turn? If it can be handled just prior to new level generation, that's when it'd need to happen, and less code to run each turn.

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: Decaying levels remotely?

#3 Post by Grey »

Or even entering the world map would be frequent enough.
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

Post Reply