PSA: Stairs now marked "known" if you've seen both ends


If it doesn't fit anywhere else, it belongs here. Also, come here if you just need to get hammered.

Tomb Titivator

Posts: 909

Joined: Thursday, 3rd January 2013, 20:32

Post Thursday, 3rd December 2015, 18:02

PSA: Stairs now marked "known" if you've seen both ends

https://github.com/crawl/crawl/commit/f ... a922376a72

  Code:
Mark stone stairs as known if you have seen both ends of them.

Previously it was generally a good idea to take each upstairs when exploring
a new level, since this gave the following benefits:
* you might need to do this to access a disconnected part of the previous
  level (often a vault)
* you would know what the terrain was like on the other side of the stairs
  in case you later wanted to retreat up the stairs while pursued by monsters
* interlevel travel would be able to use those stairs to move between levels
  more efficiently (this is especially important for the orbrun)

But if you had already fully explored the previous level then taking an
upstairs to it was very unlikely to be interesting at all, despite still
giving benefits 2 and 3 above. Manually doing <> on each unknown upstairs was
an uninteresting task (and one that autoexplore does not do for you).

This commit effectively gives benefits 2 and 3 to you for free by marking
stone stairs as known (and letting interlevel travel know about them) as soon
as you have seen both sides of them. (This information was actually already
leaked by player lua asking for the name of the stair feature.) This means
that if an upstairs is marked as unknown then you know for sure that there
is something new on the other side of it that you should go explore.

This commit does lose the information of which stairs a player has actually
traversed. If it turns out that players really want the game to keep track
of this for them, I'd suggest adding it as a flag in stair_info so that it
is logically separate from knowing the destination of the stair. Then an
option can be added to emphasise stairs based on whether the stair has been
traversed rather than on whether the destination of the stair is known. I'm
not adding a new option until it is clear that such behavior is desired,
though...
Wins (Does not include my GrEE^Veh 15-runer...stupid experimental branch)

For this message the author tedric has received thanks: 4
all before, archaeo, duvessa, tasonir

Ziggurat Zagger

Posts: 5382

Joined: Friday, 25th November 2011, 07:36

Post Thursday, 3rd December 2015, 19:08

Re: PSA: Stairs now marked "known" if you've seen both ends

Having the fast travel option be limited to whichever one stair I actually took has always bothered me, yet I never thought of such a simple solution to it, so this is most welcome. I've never bothered to methodically visit each staircase, and being able to tell there was a disconnected area a little easier is always welcome.

Tomb Titivator

Posts: 885

Joined: Sunday, 28th June 2015, 14:44

Post Thursday, 3rd December 2015, 23:26

Re: PSA: Stairs now marked "known" if you've seen both ends

Now I only have to go up escape hatches. I take it there's no chance this task could be removed as well?
User avatar

Pandemonium Purger

Posts: 1283

Joined: Thursday, 16th April 2015, 22:39

Post Friday, 4th December 2015, 01:16

Re: PSA: Stairs now marked "known" if you've seen both ends

Cool! So if you go down to D:2 for the first time, and see one upstairs nearby, you now know which of the remaining 2 downstairs on D:1 it leads to?
User avatar

Ziggurat Zagger

Posts: 4478

Joined: Wednesday, 23rd October 2013, 07:56

Post Friday, 4th December 2015, 08:04

Re: PSA: Stairs now marked "known" if you've seen both ends

ydeve wrote:Now I only have to go up escape hatches. I take it there's no chance this task could be removed as well?

This would be great too. So if you saw the part of the other level where the hatch leads to, the hatch would be marked as taken.
DCSS: 97:...MfCj}SpNeBaEEGrFE{HaAKTrCK}DsFESpHu{FoArNaBe}
FeEE{HOIEMiAE}GrGlHuWrGnWrNaAKBaFi{MiDeMfDe}{DrAKTrAMGhEnGnWz}
{PaBeDjFi}OgAKPaCAGnCjOgCKMfAEAtCKSpCjDEEE{HOSu
Bloat: 17: RaRoPrPh{GuStGnCa}{ArEtZoNb}KiPaAnDrBXDBQOApDaMeAGBiOCNKAsFnFlUs{RoBoNeWi

Return to Crazy Yiuf's Corner

Who is online

Users browsing this forum: No registered users and 47 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.