! 1      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                                                      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                           ! "!#!$!%!&!'!(!)!*!+!,!-!.!/!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>!?!@!A!B!C!D!E"F"G"H"I"J"K"L"M"N"O"P"Q"R"S"T"U"V"W"X"Y"Z"["\"]"^"_"`"a"b"c"d"e"f"g"h"i"j"k"l"m"n#o#p#q#r#s#t#u#v#w#x#y#z#{#|#}#~###############################################################################$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%%%%%%%%%%%%%%&&&&&&&&&&& & & & & &&&&&&&&&&&&&&&&&&& &!&"&#&$&%&&&'&(&)&*&+&,&-&.&/&0&1&2&3&4&5&6&7&8&9&:&;&<&=&>&?&@&A&B&C&D&E&F&G&H&I'J'K'L'M'N'O'P'Q'R'S'T'U'V'W'X'Y'Z'['\']'^'_'`'a'b'c'd'e'f'g'h'i'j'k'l'm'n'o'p'q'r's't'u'v(w(x(y(z({(|(}(~((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))*********************************************************** * * * * ******************* *!*"*#+$+%+&+'+(+)+*+++,+-+.+/+0+1+2+3+4+5+6+7+8+9+:+;+<+=+>+?,@,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S-T-U-V-W-X-Y-Z-[-\-]-^-_-`-a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z-{.|.}.~.................../////////////////////////00000000000000011111111111111111111111111111122222222222333333333333333333333333333333 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 !4 "4 #4 $4 %4 &4 '4 (4 )5 *5 +5 ,5 -5 .5 /5 05 15 25 35 45 55 65 75 85 95 :5 ;5 <5 =5 >6 ?6 @6 A6 B6 C6 D6 E6 F6 G6 H6 I6 J6 K6 L6 M6 N7 O7 P7 Q7 R7 S7 T7 U7 V7 W7 X7 Y7 Z7 [7 \7 ]7 ^7 _7 `7 a7 b7 c7 d7 e7 f7 g7 h7 i7 j7 k7 l7 m7 n7 o7 p7 q8 r8 s8 t8 u8 v8 w8 x8 y8 z8 {8 |8 }8 ~8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 : !: ": #: $: %: &: ': (: ): *: +: ,: -: .: /: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: :: ;: <: =; >; ?; @; A; B; C; D; E< F< G< H< I< J< K< L< M< N< O< P< Q< R< S< T< U< V< W< X< Y< Z< [< \< ]< ^< _< `< a< b< c< d< e< f< g< h< i< j< k< l< m< n< o< p< q< r< s< t< u< v< w< x< y< z< {< |< }< ~< < < < < < = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = > > > > > > > > > > > > > > > > > > > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? !? "? #? $? %? &? '? (? )? *? +? ,? -? .? /? 0? 1? 2? 3? 4? 5? 6? 7@ 8@ 9@ :@ ;@ <@ =@ >@ ?@ @@ A@ B@ C@ D@ E@ F@ G@ H@ I@ J@ K@ L@ M@ N@ O@ P@ Q@ R@ S@ T@ U@ V@ W@ X@ Y@ Z@ [@ \@ ]@ ^@ _@ `@ a@ b@ c@ dA eA fA gA hA iA jA kA lA mB nB oB pB qB rB sB tB uC vC wC xC yC zC {C |C }C ~C C C C C C C C C C C C C C C C C C C D D D D D D D D D D D D D D D D D D D D E E F F G G G G G G G G G G G G G G G G G G G G G G G G G H H I I I I I I I J J J J J J J J J J J J J J J K K K K K K K K K K K K K K K K K K L L L L L L L L L L L L L L L M M M M M M M M M M M M M M M M M M M M M N N N N N N N N N N N N N O O O O !O "O #O $O %O &O 'P (P )P *P +P ,P -P .P /P 0P 1P 2P 3P 4P 5P 6P 7P 8P 9P :P ;P <Q =Q >Q ?Q @Q AQ BQ CQ DQ EQ FQ GQ HQ IQ JQ KQ LQ MQ NQ OQ PQ QQ RQ SQ TQ UQ VQ WQ XQ YQ ZQ [Q \Q ]Q ^Q _Q `Q aQ bQ cQ dQ eQ fQ gQ hQ iQ jQ kQ lQ mQ nQ oQ pQ qQ rQ sQ tQ uQ vQ wQ xQ yQ zQ {Q |Q }Q ~Q Q Q R R R R R R R R R R R R R R R R S S S S S S S S S S T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T U U U U U V V V V V V V W W W W W W W W W W W W W W X X X X X X X Y Y Y Y Y Y Y Y Y Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z [ [ [ [ [ [ [ [ [ [ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ !\ "\ #\ $\ %\ &\ '\ (\ )\ *\ +\ ,\ -\ .\ /\ 0\ 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8\ 9\ :\ ;\ <\ =\ >\ ?\ @\ A\ B\ C\ D\ E\ F] G] H] I] J] K] L] M] N] O] P] Q] R] S] T] U] V] W] X] Y] Z^ [^ \^ ]^ ^^ _^ `^ a^ b^ c^ d^ e^ f^ g^ h^ i^ j^ k^ l^ m^ n^ o^ p^ q^ r^ s^ t^ u^ v^ w^ x^ y^ z^ {^ |^ }^ ~^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ _ _ _ _ _ ` ` a a a a a a a a b b b b b c c c c c c c c c c c c c c c c c c c c c c c c c c c c d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d e e f f f f f f f f f f f f f f f f f f f f f f f g g g gggggghhhh h h h h hhhhhhhhiiiiiiiiiii i!i"i#i$i%i&j'j(j)j*j+j,j-j.j/j0j1j2j3j4j5j6j7j8j9j:j;j<j=j>j?j@kAkBkCkDkEkFkGlHlIlJlKlLlMlNlOlPlQlRlSlTlUlVlWlXlYlZl[l\l]l^l_l`mambmcmdmemfmgmhninjnknlnmnnnonpoqorosotouovowoxoyozo{o|o}o~oooooooooooooooooooooooooooooooooooooooopppppppppppppppppppppppppqqqqqrrrrrrrrrrrrrrxNone "#$V]^kG LambdaHackShow and pack the result.H LambdaHackInteger division, rounding up.K LambdaHackIA version specialized to lists to avoid errors such as taking length of  Maybe [a] instead of [a]`. Such errors are hard to detect, because the type of elements of the list is not constrained.L LambdaHackGA version specialized to lists to avoid errors such as taking null of  Maybe [a] instead of [a]`. Such errors are hard to detect, because the type of elements of the list is not constrained. %&'9() *+,5-+,  *).BA@?;:/0123P4#"$65{z}|~6\Z[Y78 !9EH:;<=>?FG@KLMABCDIJNOQRSTUVWX_]^`acdefghijklmnopqrstuvwxy      !"#$ %&'(-./0123    478<=>EFGHIJKL} %&'9() *+,5-+,  *).BA@?;:/0123P4#"$65{z}|~6\Z[Y78 !9EH:;<=>?FG@KLMABCDIJNOQ`acdefghijklmorstuvwxy      !"$%&'(-./0123478<=> {z}|~VWXnopqrstuvw      !"#$RSTUFEGHIJKL^]_H7I4None "#$6V]^k[ M LambdaHack2D points in cartesian representation. Coordinates grow to the right and down, so that the (0, 0) point is in the top-left corner of the screen. Coordinates are never negative.Q LambdaHack)Spacial dimension for points and vectors.R LambdaHack)Spacial dimension for points and vectors.S LambdaHack|The maximum number of bits for level X and Y dimension (16). The value is chosen to support architectures with 32-bit Ints.T LambdaHackMaximal supported level X and Y dimension. Not checked anywhere. The value is chosen to support architectures with 32-bit Ints.U LambdaHack9The distance between two points in the chessboard metric.V LambdaHack.Squared euclidean distance between two points.W LambdaHack\Checks whether two points are adjacent on the map (horizontally, vertically or diagonally).X LambdaHack'Checks that a point belongs to an area.Y LambdaHack=Bresenham's line algorithm generalized to arbitrary starting eps (eps value of 0 gives the standard BLA). Skips the source point and goes through the second point to the edge of the level. GIves Nothing2 if the points are equal. The target is given as Point to permit aiming out of the level, e.g., to get uniform distributions of directions for explosions close to the edge of the level.Z LambdaHack=Bresenham's line algorithm generalized to arbitrary starting eps (epsn value of 0 gives the standard BLA). Includes the source point and goes through the target point to infinity.[ LambdaHackSee  Bhttp://roguebasin.roguelikedevelopment.org/index.php/Digital_lines.\ LambdaHackzA list of all points on a straight vertical or straight horizontal line between two points. Fails if no such line exists.MNOPQRSTUVWXYZ[\]RQMNOPSUVWXY\]TZ[None"#$0<FTV]^k~d LambdaHackArrays indexed by Point.p LambdaHack Array lookup.r LambdaHack5Construct an array updated with the association list.v LambdaHack*Create an array from a replicated element.w LambdaHack1Create an array from a replicated monadic action.x LambdaHack Create an array from a function.y LambdaHack(Create an array from a monadic function.{ LambdaHackContent identifiers array size.| LambdaHackFold right over an array.} LambdaHack"Fold right strictly over an array.~ LambdaHack!Fold left strictly over an array. LambdaHackSFold left strictly over an array (function applied to each element and its index). LambdaHackKFold right over an array (function applied to each element and its index). LambdaHackTFold right strictly over an array (function applied to each element and its index). LambdaHack(Fold monadically strictly over an array. LambdaHackZFold monadically strictly over an array (function applied to each element and its index). LambdaHackMap over an array. LambdaHackCMap over an array (function applied to each element and its index). LambdaHackgMap monadically over an array (function applied to each element and its index) and ignore the results. LambdaHack.Set all elements to the given value, in place. LambdaHack;Set all elements to the given value, in place, if possible. LambdaHack[Yield the point coordinates of a minimum element of the array. The array may not be empty. LambdaHackbYield the point coordinates of the last minimum element of the array. The array may not be empty. LambdaHackbYield the point coordinates of all the minimum elements of the array. The array may not be empty. LambdaHackcYield the point coordinates of the first maximum element of the array. The array may not be empty. LambdaHackbYield the point coordinates of the last maximum element of the array. The array may not be empty. LambdaHack/Force the array not to retain any extra memory.-defghijklmnopqrstuvwxyz{|}~-ijkldefghnopqrstuvwxyz{|}~mNone"#$6FKTV]^k-D LambdaHackTactic of non-leader actors. Apart of determining AI operation, each tactic implies a skill modifier, that is added to the non-leader skills defined in  fskillsOther field of Player. LambdaHack;if enemy nearby, attack, if no items, etc., explore unknown LambdaHack:always follow leader's target or his position if no target LambdaHack/follow but don't do any item management nor use LambdaHackonly melee and do ranged combat LambdaHackonly melee (or wait) LambdaHack.always only wait, even if enemy in melee range LambdaHack9if enemy nearby, attack, if no items, etc., roam randomly LambdaHackdfind an open and uncrowded area, patrol it according to sight radius and fallback temporarily to TRoamO when enemy is seen by the faction and is within the actor's sight radius LambdaHackItem slot and lore categories. LambdaHackActor's item stores. LambdaHackItem container type. LambdaHackfor bootstrapping actor bodies LambdaHack/A unique identifier of an actor in the dungeon. LambdaHackAbstract level identifiers. LambdaHack+A unique identifier of a faction in a game. LambdaHackWRe-exported English phrase creation functions, applied to default irregular word sets. LambdaHackWRe-exported English phrase creation functions, applied to default irregular word sets. LambdaHack Apply the WWandW1 constructor, first representing repetitions as  CardinalWs. The parts are not sorted, only grouped, to keep the order. The internal structure of speech parts is compared, not their string rendering, so some coincidental clashes are avoided (and code is simpler). LambdaHack Level bounds. LambdaHackmPersonal data directory for the game. Depends on the OS and the game, e.g., for LambdaHack under Linux it's ~/.LambdaHack/.22None "#$V]^k; LambdaHackZSerialize, compress and save data. Note that LBS.writeFile opens the file in binary mode. LambdaHack;Serialize, compress and save data with an EOF marker. The OKn is used as an EOF marker to ensure any apparent problems with corrupted files are reported to the user ASAP. LambdaHack?Read, decompress and deserialize data with an EOF marker. The OKr EOF marker ensures any easily detectable file corruption is discovered and reported before the function returns. LambdaHackTry to create a directory, if it doesn't exist. We catch exceptions in case many clients try to do the same thing at the same time. LambdaHackTry to write a file, given content, if the file not already there. We catch exceptions in case many clients try to do the same thing at the same time.bCDCbDsNone "#$V]^k<bCDCbDNone"#$3456V]^kJ  LambdaHackThe frequency distribution type. Not normalized (operations may or may not group the same elements and sum their frequencies). However, elements with zero frequency are removed upon construction.The Eq instance compares raw representations, not relative, normalized frequencies, so operations don't need to preserve the expected equalities. LambdaHack"give acces to raw frequency values LambdaHack!short description for debug, etc.  LambdaHack(Uniform discrete frequency distribution.! LambdaHackRTakes a name and a list of frequencies and items into the frequency distribution." LambdaHackMScale frequency distribution, multiplying it by a positive integer constant.# LambdaHack(Change the description of the frequency.$ LambdaHackSet frequency of an element.% LambdaHack,Test if the frequency distribution is empty.  !"#$%&'(  !"#$%&'(None"#$6;=KV]^kt4 LambdaHackqDice for rolling a pair of integer parameters pertaining to, respectively, the X and Y cartesian 2D coordinates.6 LambdaHackAbsolute depth in the dungeon. When used for the maximum depth of the whole dungeon, this can be different than dungeon size, e.g., when the dungeon is branched, and it can even be different than the length of the longest branch, if levels at some depths are missing.8 LambdaHackMultiple dice rolls, some scaled with current level depth, in which case the sum of all rolls is scaled in proportion to current depth divided by maximal dungeon depth.IThe simple dice should have positive number of rolls and number of sides.The Num instance doesn't have abs nor signumk defined, because the functions for computing minimum, maximum and mean dice results would be too costly.9 LambdaHack\Cast dice scaled with current level depth. When scaling, we round up, so that the value of 1 ; 1 is 1 even at the lowest level.EThe implementation calls RNG as many times as there are dice rolls, which is costly, so content should prefer to case fewer dice and then multiply them by a constant. If rounded results are not desired (often they are, to limit the number of distinct item varieties in inventory), another dice may be added to the result.>A different possible implementation, with dice represented as  Frequency, makes only one RNG call per dice, but due to lists lengths proportional to the maximal value of the dice, it's is intractable for 1000d1000 and problematic already for 100d100.: LambdaHack/A die, rolled the given number of times. E.g., 1 : 2 rolls 2-sided die one time.; LambdaHackYA die rolled the given number of times, with the result scaled with dungeon level depth.< LambdaHackgA die, starting from zero, ending at one less than the bound, rolled the given number of times. E.g., 1 < 1 always rolls zero.= LambdaHackA die, starting from zero, ending at one less than the bound, rolled the given number of times, with the result scaled with dungeon level depth.? LambdaHack/Minimal and maximal possible value of the dice.divUp& in the implementation corresponds to ceiling, applied to results of meanDicee elsewhere in the code, and prevents treating 1d1-power effects (on shallow levels) as null effects.@ LambdaHackCMaximal value of dice. The scaled part taken assuming median level.A LambdaHackCMinimal value of dice. The scaled part taken assuming median level.B LambdaHack@Mean value of dice. The scaled part taken assuming median level.D LambdaHackMaximal value of DiceXY.E LambdaHackMinimal value of DiceXY.F LambdaHackMean value of DiceXY.456789:;<=>?@ABCDEF8679:;<=>?@ABC45DEFNone"#$6DFKTV]^k^W LambdaHackOptimized representation of Z.Z LambdaHack)Character to display, with its attribute.^ LambdaHack0Text attributes: foreground color and highlight.` LambdaHackforeground coloura LambdaHack highlightb LambdaHackaAdditional map cell highlight, e.g., a colorful square around the cell or a colorful background.j LambdaHack)Colours supported by the major frontends.{ LambdaHack3The default colours, to optimize attribute setting.| LambdaHackAA helper for the terminal frontends that display bright via bold.} LambdaHack Colour sets.~ LambdaHack Colour sets. LambdaHack Colour sets. LambdaHack@Translationg to heavily modified Linux console color RGB values.1Warning: SDL frontend sadly duplicates this code. LambdaHackoFor reference, the original Linux console colors. Good old retro feel and more useful than xterm (e.g. brown). LambdaHack5The default attribute, to optimize attribute setting.6WXYZ[\]^_`abcdefghijklmopqrnstuvwxyz{|}~6jklmopqrnstuvwxyz{|}~bcdefghi^_`aZ[\]WXY None "#$6V]^k  LambdaHackThe type of item flavours. LambdaHack*how fancy should the colour description be LambdaHackthe colour of the flavour LambdaHack%Turn a colour set into a flavour set. LambdaHack%Turn a colour set into a flavour set. LambdaHack%Turn a colour set into a flavour set. LambdaHack,Get the underlying base colour of a flavour. LambdaHack%Construct the full name of a flavour. LambdaHack4Human-readable names for item colors. The plain set. LambdaHack4Human-readable names for item colors. The fancy set. LambdaHack5Human-readable names for item colors. The liquid set. LambdaHack8Simple names for team colors (bright colours preferred).   None "#$6V]^k LambdaHack$Skill level in particular abilities.This representation is sparse, so better than a record when there are more item kinds (with few abilities) than actors (with many abilities), especially if the number of abilities grows as the engine is developed. It's also easier to code and maintain. LambdaHackDActor and faction abilities corresponding to client-server requests. None "#$QV]^k LambdaHackColor mode for the display. LambdaHacknormal, with full colours LambdaHackblack and white only LambdaHack|Sparse screen overlay representation where only the indicated rows are overlayed and the remaining rows are kept unchanged. LambdaHackA series of screen lines that either fit the width of the screen or are intended for truncation when displayed. The length of overlay may exceed the length of the screen, unlike in  SingleFrameZ. An exception is lines generated from animation, which have to fit in either dimension. LambdaHackLine of colourful text. LambdaHack3Render line of text in the given foreground colour. LambdaHackSplit a string into lines. Avoids ending the line with a character other than whitespace or punctuation. Space characters are removed from the start, but never from the end of lines. Newlines are respected.6 None"#$FQTV]^k_ LambdaHack-Sequences of screen frames, including delays. LambdaHackAn overlay that fits on the screen (or is meant to be truncated on display) and is padded to fill the whole screen and is displayed as a single game screen frame.Note that we don't provide a list of color-highlighed positions separately, because overlays need to obscure not only map, but the highlights as well. LambdaHackEfficiently composable representation of an operation on a frame, that is, on a mutable vector. When the composite operation is eventually performed, the vector is frozen to become a . LambdaHack[Representation of an operation of overwriting a frame with a single line at the given row. LambdaHackTruncate the overlay: for each line, if it's too long, it's truncated and if there are too many lines, excess is dropped and warning is appended. LambdaHacksAdd a space at the message end, for display overlayed over the level map. Also trim (do not wrap!) too long lines. LambdaHackOverlays either the game map only or the whole empty screen frame. We assume the lines of the overlay are not too long nor too many.   None "#$6V]^k LambdaHackEOptions that affect the behaviour of the client (but not game rules). LambdaHack0Font family to use for the GTK main game window. LambdaHack/Font file to use for the SDL2 main game window. LambdaHackDPixels to add to map cells on top of scalable font max glyph height. LambdaHack@Pixels to add to map cells on top of .fon font max glyph height. LambdaHack*Font size to use for the main game window. LambdaHack6Whether to use bold attribute for colorful characters.  LambdaHackEHow much to log (e.g., from SDL). 1 is all, 5 is errors, the default.  LambdaHackMaximal frames per second. This is better low and fixed, to avoid jerkiness and delays that tell the player there are many intelligent enemies on the level. That's better than scaling AI sofistication down based on the FPS setting and machine speed.  LambdaHack8Never auto-answer all prompts, even if under AI control.  LambdaHackDon't show any animations.  LambdaHack,Start a new game, overwriting the save file. LambdaHack7Don't create directories and files and show time stats. LambdaHack"Prefix of the save game file name. LambdaHack)Whether to use the stdout/stdin frontend. LambdaHack/Whether to use null (no input/output) frontend. LambdaHack:Whether to use lazy (output not even calculated) frontend. LambdaHack&Show clients' internal debug messages. LambdaHack Default value of client options.          None"#$6FKTV]^k $ LambdaHack3State of legality of moves between adjacent points.) LambdaHack6Weighted distance between points along shortest paths.* LambdaHackQThe minimal distance value assigned to paths that don't enter any unknown tiles.+ LambdaHackThe distance value that denotes no legal path between points, either due to blocked tiles or pathfinding aborted at earlier tiles, e.g., due to unknown tiles., LambdaHackMaximum value of the type.- LambdaHackThe distance value that denotes that path search was aborted at this tile due to too large actual distance and that the tile was known and not blocked. It is also a true distance value for this tile (shifted by minKnownBfs, as all distances of known tiles).. LambdaHackThe distance value that denotes that path search was aborted at this tile due to too large actual distance and that the tile was unknown. It is also a true distance value for this tile./ LambdaHack&Fill out the given BFS array. Unsafe  PointArray operations are OK here, because the intermediate values of the vector don't leak anywhere outside nor are kept unevaluated and so they can't be overwritten by the unsafe side-effect.When computing move cost, we assume doors openable at no cost, because other actors use them, too, so the cost is shared and the extra visiblity is valuable, too. We treat unknown tiles specially. Whether suspect tiles are considered openable depends on  smarkSuspect.0 LambdaHackIFind a path, without the source position, with the smallest length. The eps coefficient determines which direction (of the closest directions available) that path should prefer, where 0 means north-west and 1 means north.1 LambdaHack>Access a BFS array and interpret the looked up distance value./ LambdaHackstarting position LambdaHackinitial array, with apartBfs !"#$%&'()*+,-./01)$%&'(*+,/ !"#01-.None"#$345NV]^k@ < LambdaHackLA strategy is a choice of (non-empty) frequency tables of possible actions.> LambdaHackUStrategy where only the actions from the given single frequency table can be picked.? LambdaHackTStrategy with the actions from both argument strategies, with original frequencies.@ LambdaHack Strategy with no actions at all.A LambdaHack Conditionally accepted strategy.B LambdaHackStrategy with all actions not satisfying the predicate removed. The remaining actions keep their original relative frequency values.C LambdaHackcWhen better choices are towards the start of the list, this is the best frequency of the strategy.D LambdaHackAOverwrite the description of all frequencies within the strategy.E LambdaHackLike *, but pick a name of the single frequency. <=>?@ABCDEF <=>?@ABCDEF?2A3None "#$V]^k  O LambdaHackFractional chance.P LambdaHack6The monad of computations with random generator state.Q LambdaHack?Get a random object within a range with a uniform distribution.R LambdaHack@Get a random object of a given type with a uniform distribution.S LambdaHack1Get any element of a list with equal probability.T LambdaHack5Gen an element according to a frequency distribution.U LambdaHack6Randomly choose an item according to the distribution.V LambdaHackGive True., with probability determined by the fraction.W LambdaHackmCast dice scaled with current level depth. Note that at the first level, the scaled dice are always ignored.X LambdaHack5Cast dice scaled with current level depth and return True$ if the results is greater than 50.Y LambdaHack<Cast dice, scaled with current level depth, for coordinates. OPQRSTUVWXYZ[ PQRSTOVWXYZ[UNone"#$6KV]^k\ LambdaHack+AI and UI hints about the role of the item.s LambdaHackA seed for rolling aspects of an item Clients have partial knowledge of how item ids map to the seeds. They gain knowledge by identifying items.t LambdaHack[Partial information about an item, deduced from its item kind. These are assigned to each ItemKind. The kmConstt flag says whether the item's aspects are constant rather than random or dependent on item creation dungeon level.v LambdaHack3whether the item doesn't need second identificationw LambdaHack%mean value of item's possible aspectsx LambdaHackBRecord of sums of aspect values of an item, container, actor, etc. LambdaHack'Aspects of items. Those that are named Add*[ are additive (starting at 0) for all items wielded by an actor and they affect the actor. LambdaHackFsome effects disabled until item recharges; expressed in game turns LambdaHack percentage damage bonus in melee LambdaHack$percentage armor bonus against melee LambdaHack%percentage armor bonus against ranged LambdaHack maximal hp LambdaHack maximal calm LambdaHack*speed in m/10s (not when pushed or pulled) LambdaHack+FOV radius, where 1 means a single tile FOV LambdaHack smell radius LambdaHack shine radius LambdaHacknoctovision radius LambdaHack+aggression, e.g., when closing in for melee LambdaHackbonus to an abilityB\]^_`abcdefghijklmnopqrstuvwxyz{|}~Bxyz{|}~tuvws\]^_`abcdefghijklmnopqrNone"#$6FKTV]^k1  LambdaHackRarity on given depths. LambdaHack6For each group that the kind belongs to, denoted by a  GroupNamer in the first component of a pair, the second component of a pair shows how common the kind is within the group. LambdaHack<Verified and preprocessed content data of a particular kind. LambdaHack)Content identifiers for the content type c. LambdaHackContent element at given id. LambdaHack9The id of the unique member of a singleton content group. LambdaHackAPick a random id belonging to a group and satisfying a predicate. LambdaHack"Fold over all content elements of a. LambdaHackFold strictly over all content a. LambdaHackFold over the given group only. LambdaHackSize of content a. LambdaHack-name of the content itme, used for validation LambdaHack5frequency in groups, for validation and preprocessing LambdaHack-validate a content item and list all offences LambdaHackEvalidate the whole defined content of this type and list all offence LambdaHackall content of this typeNone "#$V]^k>  LambdaHackAnimation is a list of frame modifications to play one by one, where each modification if a map from positions to level map symbols. LambdaHack+Render animations on top of a screen frame.Located in this module to keep  Animation abstract. LambdaHackGAttack animation. A part of it also reused for self-damage and healing. LambdaHack!Attack that hits through a block. LambdaHackAttack that is blocked. LambdaHack,Attack that is subtle (e.g., damage dice 0). LambdaHack$Death animation for an organic body. LambdaHackGDeath animation for an organic body, short version (e.g., for enemies). LambdaHackMark actor location animation. LambdaHackActor teleport animation. LambdaHack1Swap-places animation, both hostile and friendly.None "#$6V]^kA LambdaHack4Ring buffers of a size determined at initialization.None "#$V]^kANone"#$3KV]^k' LambdaHackSpeed in meters per 1 million seconds (m/Ms). Actors at normal speed (2 m/s) take one time turn (0.5 s) to make one step (move one tile, which is 1 m by 1 m). LambdaHacktOne-dimentional vectors. Introduced to tell apart the 2 uses of Time: as an absolute game time and as an increment. LambdaHacksGame time in ticks. The time dimension. One tick is 1 microsecond (one millionth of a second), one turn is 0.5 s. LambdaHack5Start of the game time, or zero lenght time interval. LambdaHackThe smallest unit of time. Should not be exported and used elsewhere, because the proportion of turn to tick is an implementation detail. The significance of this detail is only that it determines resolution of the time dimension. LambdaHackAn infinitesimal time period. LambdaHackAt least once per clip all moves are resolved and a frame or a frame delay is generated. Currently one clip is 0.05 s, but it may change, and the code should not depend on this fixed value. LambdaHack|One turn is 0.5 s. The code may depend on that. Actors at normal speed (2 m/s) take one turn to move one tile (1 m by 1 m). LambdaHack'This many turns fit in a single second. LambdaHack7This many ticks fits in a single second. Do not export, LambdaHackjAbsolute time addition, e.g., for summing the total game session time from the times of individual games. LambdaHackuAbsolute time negation. To be used for reversing time flow, e.g., for comparing absolute times in the reverse order. LambdaHackSHow many time intervals of the latter kind fits in an interval of the former kind. LambdaHack^How many time intervals of the latter kind cover an interval of the former kind (rounded up).  LambdaHack+Shifting an absolute time by a time vector.  LambdaHackTime time vector between the second and the first absolute times. The arguments are in the same order as in the underlying scalar subtraction.  LambdaHackAddition of time deltas.  LambdaHackiSubtraction of time deltas. The arguments are in the same order as in the underlying scalar subtraction.  LambdaHackReverse a time vector. LambdaHackScale the time vector by an Int scalar value. LambdaHack*Take the given percent of the time vector. LambdaHackDivide a time vector. LambdaHackfRepresent the main 10 thresholds of a time range by digits, given the total length of the time range. LambdaHack#Number of seconds in a mega-second. LambdaHack$Constructor for content definitions. LambdaHackCPretty-printing of speed in the format used in content definitions. LambdaHackThe minimal speed is half a meter (half a step across a tile) per second (two standard turns, which the time span during which projectile moves, unless it has modified linger value). This is four times slower than standard human movement speed.It needen't be lower, because rangeFromSpeedq gives 0 steps with such speed, so the actor's trajectory is empty, so it drops down at once. Twice that speed already moves a normal projectile one step before it stops. It shouldn't be lower or a slow actor would incur such a time debt for performing a single action that he'd be paralyzed for many turns, e.g., leaving his dead body on the screen for very long. LambdaHack#No movement possible at that speed. LambdaHackCFast walk speed (2 m/s) that suffices to move one tile in one turn. LambdaHackLimp speed (1 m/s) that suffices to move one tile in two turns. This is the minimal speed for projectiles to fly just one space and drop. LambdaHack5Sword thrust speed (10 m/s). Base weapon damages, both melee and ranged, are given assuming this speed and ranged damage is modified accordingly when projectile speeds differ. Differences in melee weapon swing speeds are captured in damage bonuses instead, since many other factors influence total damage.Billiard ball is 25 m!s, sword swing at the tip is 35 ms, medieval bow is 70 ms, AK47 is 700 ms. LambdaHackModify damage when projectiles is at a non-standard speed. Energy and so damage is proportional to the square of speed, hence the formula. LambdaHackScale speed by an Int scalar value. LambdaHackSpeed addition. LambdaHackSpeed negation. LambdaHackEThe number of time ticks it takes to walk 1 meter at the given speed.  LambdaHackZCalculate projectile speed from item weight in grams and velocity percent modifier. See  =https://github.com/LambdaHack/LambdaHack/wiki/Item-statistics.! LambdaHackGCalculate maximum range in meters of a projectile from its speed. See  =https://github.com/LambdaHack/LambdaHack/wiki/Item-statisticsz. With this formula, each projectile flies for at most 1 second, that is 2 standard turns, and then drops to the ground." LambdaHackBCalculate maximum range taking into account the linger percentage.*      !"*      "!None"#$6KV]^kN4 LambdaHackThe history of reports. This is a ring buffer of the given length containing old archived history and two most recent reports stored separately.6 LambdaHackEThe set of messages, with repetitions, to show at the screen at once.8 LambdaHack"The type of a single game message. LambdaHack)the colours and characters of the message LambdaHack-whether message should be recorded in history> LambdaHackEmpty set of messages.? LambdaHack%Test if the set of messages is empty.@ LambdaHack'Add a message to the end of the report.A LambdaHack%Add a message to the start of report.B LambdaHack*Render a report as a (possibly very long) .E LambdaHack*Empty history of the given maximal length.G LambdaHackuAdd a message to the new report of history, eliminating a possible duplicate and noting its existence in the result.H LambdaHack^Archive old report to history, filtering out prompts. Set up new report with a new timestamp.K LambdaHacksRender history as many lines of text. New report is not rendered. It's expected to be empty when history is shown.456789:;<=>?@ABCDEFGHIJK8<=6?ABD45EGHJK97:;>@CFINone "#$6V]^kzY LambdaHack2D vectors in cartesian representation. Coordinates grow to the right and down, so that the (1, 1) vector points to the bottom-right corner of the screen.] LambdaHack-Maximal supported vector X and Y coordinates.^ LambdaHack8Tells if a vector has length 1 in the chessboard metric._ LambdaHackChecks whether a unit vector is a diagonal direction, as opposed to cardinal. If the vector is not unit, it checks that the vector is not horizontal nor vertical.` LambdaHackReverse an arbirary vector.a LambdaHackNThe lenght of a vector in the chessboard metric, where diagonal moves cost 1.b LambdaHack/Squared euclidean distance between two vectors.c LambdaHackTVectors of all unit moves in the chessboard metric, clockwise, starting north-west.d LambdaHackHVectors of all cardinal direction unit moves, clockwise, starting north.e LambdaHackHVectors of all diagonal direction unit moves, clockwise, starting north.f LambdaHackCurrently unused.i LambdaHack=All (8 at most) closest neighbours of a point within an area.k LambdaHackHAll (4 at most) cardinal direction neighbours of a point within an area.n LambdaHackTranslate a point by a vector.o LambdaHackFTranslate a point by a vector, but only if the result fits in an area.p LambdaHack1A list of points that a list of vectors leads to.q LambdaHackHA list of points that a list of vectors leads to, bounded by level size.r LambdaHack:The vector between the second point and the first. We have -shift pos1 (pos2 `vectorToFrom` pos1) == pos2LThe arguments are in the same order as in the underlying scalar subtraction.s LambdaHack+A list of vectors between a list of points.u LambdaHackRotate a vector by the given angle (expressed in radians) counterclockwise and return a unit vector approximately in the resulting direction.v LambdaHackGiven a vector of arbitrary non-zero length, produce a unit vector that points in the same direction (in the chessboard metric). Of several equally good directions it picks one of those that visually (in the euclidean metric) maximally align with the original vector.x LambdaHack_Given two distinct positions, determine the direction (a unit vector) in which one should move from the first in order to get closer to the second. Ignores obstacles. Of several equally good directions (in the chessboard metric) it picks one of those that visually (in the euclidean metric) maximally align with the vector between the two points.i LambdaHacklimit the search to this area LambdaHackposition to find neighbours ofk LambdaHacklimit the search to this area LambdaHackposition to find neighbours of!XYZ[\]^_`abcdefghijklmnopqrstuvwx!YZ[\^_`abcdehijklmnopqrtXux]fgvwsNone "#$6V]^ko LambdaHack,Key, modifier and position of mouse pointer. LambdaHackKey and modifier. LambdaHackOur own encoding of modifiers. LambdaHack0Frontend-independent datatype to represent keys. LambdaHack3a keypad key for a character (digits and operators) LambdaHacka single printable character LambdaHack function key LambdaHackleft mouse button pressed LambdaHackmiddle mouse button pressed LambdaHackright mouse button pressed LambdaHackleft mouse button released LambdaHackmiddle mouse button released LambdaHackright mouse button released LambdaHackmouse wheel rotated north LambdaHackmouse wheel rotated south LambdaHack+an unknown key, registered to warn the user LambdaHack Common and terse names for keys. LambdaHack#Show a key with a modifier, if any. LambdaHackbConfigurable event handler for the direction keys. Used for directed commands such as close door. LambdaHack5Binding of both sets of movement keys, vi and laptop. LambdaHackTranslate key from a GTK string description to our internal key type. To be used, in particular, for the command bindings and macros in the config file.See >https://github.com/twobob/gtk-/blob/master/gdk/keyname-table.h LambdaHack2Translate key from a Web API string description ( Mhttps://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key#Key_valuesf) to our internal key type. To be used in web frontends. The argument says whether Shift is pressed.TTNone "#$V]^k' LambdaHackwRaw frontend definition. The minimal closed set of values that need to depend on the specifics of the chosen frontend. LambdaHackEmpty the keyboard channel. LambdaHack)Translates modifiers to our own encoding.  None "#$V]^k LambdaHackThe name of the frontend. LambdaHack%Set up the frontend input and output. LambdaHack&Output to the screen via the frontend. LambdaHackthe screen frame to drawNone "#$V]^k' LambdaHack(Session data maintained by the frontend. LambdaHackThe name of the frontend. LambdaHack:Set up and start the main loop providing input and output.3Apparently some SDL backends are not thread-safe ( &https://wiki.libsdl.org/FAQDevelopmento; "this should only be run in the thread that initialized the video subsystem, and for extra safety, you should consider only doing those things on the main thread in any case") so we stick to a single bound thread (but not to the main thread; enough is enough and at least in the case of OpenGL all bound threads are supposed to be as good as the main thread). LambdaHackAdd a frame to be drawn.  LambdaHack9Translates modifiers to our own encoding, ignoring Shift. LambdaHackfrontend session data LambdaHackthe screen frame to draw LambdaHackfrontend session data LambdaHackthe screen frame to draw      tNone "#$V]^k}None"#$&'FQV]^k   LambdaHack[Machinery allocated for an individual frontend at its startup, unchanged for its lifetime.  LambdaHackConnection channel between a frontend and a client. Frontend acts as a server, serving keys, etc., when given frames to display. LambdaHackUThe instructions sent by clients to the raw frontend, indexed by the returned value. LambdaHack Show a frame. LambdaHack.Perform an explicit delay of the given length. LambdaHack5Flush frames, display a frame and ask for a keypress. LambdaHackTell if a keypress is pending. LambdaHack#Discard a key in the queue, if any. LambdaHackAdd a key to the queue. LambdaHack7Set in the frontend that it should auto-answer prompts. LambdaHackShut the frontend down. LambdaHackTake screenshot. LambdaHack@Initialize the frontend chosen by the player via client options.# LambdaHack The name of the chosen frontend.   !"#$%& #  !"$%&None "#$6V]^kTD' LambdaHackGMap from an item kind identifier to the mean aspect value for the kind.QSignificant portions of this map are unused and so intentially kept unevaluated.( LambdaHackqFeatures of item. Affect only the item in question, not the actor carrying it, and so not additive in any sense.) LambdaHack,extra label of the item; it's not pluralized* LambdaHack-drop and break at target tile, even if no hit+ LambdaHack#drop at target tile, even if no hit, LambdaHack)don't break even when hitting or applying- LambdaHackparameters modifying a throw. LambdaHack.until identified, presents as this unique kind/ LambdaHack6AI and UI flag: consider equipping (independent of 4#, e.g., in case of mixed blessings)0 LambdaHack&AI and UI flag: consider meleeing with1 LambdaHack_AI and UI flag: don't risk identifying by use; also, can't throw or apply if not calm enough2 LambdaHack$overrides actor's tactic; WIP; move?3 LambdaHack'the item is an explosion blast particle4 LambdaHack+AI and UI flag that leaks item intended use5 LambdaHack&at most one copy can ever be generated6 LambdaHackin eqp, triggered as often as Timeout permits7 LambdaHackoverride: the effects on this item are considered minor and so not causing identification on use, and so this item will identify on pick-up8 LambdaHackkParameters modifying a throw of a projectile or flight of pushed actor. Not additive and don't start at 0.: LambdaHack,fly with this percentage of base throw speed; LambdaHack"fly for this percentage of 2 turns< LambdaHackpSpecification of how to randomly roll a timer at item creation to obtain a fixed timer for the item's lifetime.D LambdaHackEffects of items. Can be invoked by the item wielder to affect another actor or the wielder himself. Many occurences in the same item are possible.E LambdaHackburn with this damageF LambdaHack&explode producing this group of blastsG LambdaHack%modify HP of the actor by this amountH LambdaHack'modify Calm of the actor by this amountI LambdaHackchange actor's allegianceJ LambdaHack$make actor susceptible to dominationK LambdaHack/summon the given number of actors of this groupL LambdaHack&ascend to another level of the dungeonM LambdaHackescape from the dungeonN LambdaHack!paralyze for this many game clipsO LambdaHack0give free time to actor of this many actor turnsP LambdaHack*teleport actor across rougly this distanceQ LambdaHackTcreate an item of the group and insert into the store with the given random timerR LambdaHackmake the actor drop items of the given group from the given store; the first integer says how many item kinds to drop, the second, how many copies of each kind to drop; for non-organs, beware of not dropping all, or cluttering store with rubbish becomes beneficialS LambdaHackcfind a suitable (i.e., numerous enough) item, starting from the floor, and polymorph it randomlyT LambdaHackXfind a suitable (i.e., not identified) item, starting from the floor, and identify itU LambdaHack/detect something on the map in the given radiusV LambdaHack.send an actor flying (push or pull, depending)W LambdaHack push an actorX LambdaHack pull an actorY LambdaHack#make the actor drop its best weaponZ LambdaHackVactivate all items with this symbol in inventory; space character means all symbols[ LambdaHackremove all smell on the level\ LambdaHack1trigger one of the effects with equal probability] LambdaHackBtrigger the effect when item smashed (not when applied nor meleed)^ LambdaHack)this effect inactive until timeout passes_ LambdaHack1only fire next effect if previous fully activated` LambdaHackthe item is temporary, vanishes at even void Periodic activation, unless Durable and not Fragile, and shows message with this verb at last copy activation or at each activation unless Durable and Fragilea LambdaHackjItem properties that are fixed for a given kind of items. Note that this type is mutually recursive with D and (.c LambdaHack map symbold LambdaHack%generic name; is pluralized if needede LambdaHackfrequency within groupsf LambdaHackpossible flavoursg LambdaHackcreated in that quantityh LambdaHackrarity on given depthsi LambdaHackthe verb for hittingj LambdaHackweight in gramsk LambdaHackbasic impact damagel LambdaHackaffect the actor continuouslym LambdaHack cause the effects when triggeredn LambdaHackproperties of the itemo LambdaHack descriptionp LambdaHack!accompanying organs and equipmentw LambdaHackWhether the effect has a chance of exhibiting any potentially noticeable behaviour, except when the item is destroyed. We assume at least one of OneOf effects must be noticeable. LambdaHack$Catch invalid item kind definitions. LambdaHackValidate all item kinds.x'(542)*+,-./0136789:;<=>?@ABCDMEFGHIJKLNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~xabcdefghijklmnopDMEFGHIJKLNOPQRSTUVWXYZ[\]^_`=>?@ABC<89:;(542)*+,-./01367'qrsuwy}~z{|tvxNone "#$6V]^kj LambdaHack2The type of game rule sets and assorted game data.yIn principle, it'se possible to have many rule sets and switch between them during a game session or even a single game. LambdaHacka symbol LambdaHackshort description LambdaHackfrequency within groups LambdaHacktitle of the game (not lib) LambdaHack%font directory for the game (not lib) LambdaHackversion of the game LambdaHackname of the UI config file LambdaHack#the default UI settings config file LambdaHackthe ASCII art for the main menu LambdaHack)the intro screen (first help screen) text LambdaHack6whether first non-spawner actor death ends the game LambdaHack)game is saved that often (not on browser) LambdaHack'server switches leader level that often LambdaHackname of the scores file LambdaHack what distance between actors is nearby LambdaHack$Catch invalid rule kind definitions. LambdaHackHSince we have only one rule kind, the set of rule kinds is always valid. LambdaHackA dummy instance of the 3o class, to satisfy general requirments about content. We won't don't expect to ever print out whole rule sets. None "#$6V]^k  LambdaHackA map morally indexed by ContentId TileKind. LambdaHackRA lot of tabulated maps from tile kind identifier to a property of the tile kind. LambdaHack#All possible terrain tile features. LambdaHackninitially an item of this group is embedded; we assume the item has effects and is supposed to be triggered LambdaHackAgoes from a closed to (randomly closed or) open tile when altered LambdaHackBgoes from an open to (randomly opened or) closed tile when altered LambdaHack,alters tile, but does not change walkability LambdaHack2when hidden, looks as the unique tile of the group LambdaHackCwhen generating, may be transformed to the unique tile of the group LambdaHackBwhen generating in opening, can be revealed to belong to the group LambdaHackEwhen generating in solid wall, can be revealed to belong to the group LambdaHackactors can walk through LambdaHackactors can see through LambdaHack is not lit with an ambient light LambdaHack#initial items often generated there LambdaHack$initial actors often generated there LambdaHackno items ever generated there LambdaHackno actors ever generated there LambdaHackKeven if otherwise uninteresting, taken into account for triggering by AI LambdaHack,used for visible trails throughout the level LambdaHackin place normal legend and in override, don't roll a tile kind only once per place, but roll for each position; one non-spicy and at most one spicy is rolled per place and then one of the two is rolled for each position LambdaHack(The type of kinds of terrain tiles. See Tile.hs9 for explanation of the absence of a corresponding type Tile that would hold particular concrete tiles in the dungeon. Note that tile names (and any other content names) should not be plural (that would lead to "a stairs"), so "road with cobblestones" is fine, but "granite cobblestones" is wrong.,Tile kind for unknown space has the minimal  ContentId index. The talter for unknown space is 1' and no other tile kind has that value. LambdaHack map symbol LambdaHackshort description LambdaHackfrequency within groups LambdaHack map color LambdaHackmap color when not in FOV LambdaHack&minimal skill needed to alter the tile LambdaHack properties LambdaHackValidate a single tile kind.  LambdaHackValidate all tile kinds.We don't check it any more, but if tiles look the same on the map (symbol and color), their substantial features should be the same, too, unless there is a good reason they shouldn't. Otherwise the player has to inspect manually all the tiles with this look to see if any is special. This tends to be tedious. Note that tiles may freely differ wrt text blurb, dungeon generation rules, AI preferences, etc., whithout causing the tedium.  LambdaHackFeatures of tiles that differentiate them substantially from one another. The intention is the player can easily tell such tiles apart by their behaviour and only looking at the map, not tile name nor description. So if running uses this function, it won't stop at places that the player can't himself tell from other places, and so running does not confer any advantages, except UI convenience. Hashes are accurate enough for our purpose, given that we use arbitrary heuristics anyway.>     >     !None "#$6V]^kU" LambdaHack)The choice of a fence type for the place.# LambdaHack'put a solid wall fence around the place$ LambdaHack*leave an empty space, like the rooms floor% LambdaHack+leave an empty space, like the caves ground& LambdaHack1skip the fence and fill all with the place proper' LambdaHackA method of filling the whole area (except for CVerbatim and CMirror, which are just placed in the middle of the area) by transforming a given corner.( LambdaHack8reflect every other corner, overlapping 1 row and column) LambdaHack6fill symmetrically 4 corners and stretch their borders* LambdaHack7tile separately and symmetrically quarters of the place+ LambdaHack7just build the given interior, without filling the area, LambdaHack6build the given interior in one of 4 mirrored variants- LambdaHackDParameters for the generation of small areas within a dungeon level./ LambdaHacka symbol0 LambdaHackshort description1 LambdaHackfrequency within groups2 LambdaHackrarity on given depths3 LambdaHack+how to fill whole place based on the corner4 LambdaHack(whether to fence place with solid border5 LambdaHack(plan of the top-left corner of the place6 LambdaHacklegend override7 LambdaHackwCatch invalid place kind definitions. In particular, verify that the top-left corner map is rectangular and not empty.8 LambdaHackValidate all place kinds."#$%&'()*+,-./0123456789-./01234569'()*+,"#$%&78"None "#$6V]^k$E LambdaHack{Parameters for the generation of dungeon levels. Warning: for efficiency, avoid embedded items in any of the common tiles.G LambdaHacka symbolH LambdaHackshort descriptionI LambdaHackfrequency within groupsJ LambdaHackX size of the whole caveK LambdaHackY size of the whole caveL LambdaHack$the dimensions of the grid of placesM LambdaHack#minimal size of places; for mergingN LambdaHackmaximal size of placesO LambdaHackthe chance a place is darkP LambdaHackthe chance the cave is darkQ LambdaHack!a proportion of extra connectionsR LambdaHack,at most this proportion of rooms may be voidS LambdaHackminimal distance between stairsT LambdaHack!extra stairs on top of from aboveU LambdaHack"the chance of a door in an openingV LambdaHackif there's a door, is it open?W LambdaHack"if not open, hidden one in n timesX LambdaHack"the lower, the more monsters spawnY LambdaHackactor groups to considerZ LambdaHack#number of initial items in the cave[ LambdaHackitem groups to consider\ LambdaHackplace groups to consider] LambdaHack$are passable default tiles permitted^ LambdaHackthe default cave tile_ LambdaHackthe dark cave corridor tile` LambdaHackthe lit cave corridor tilea LambdaHackthe filler wallb LambdaHackthe outer fence wallc LambdaHackthe dark place plan legendd LambdaHackthe lit place plan legende LambdaHackescape, if anyf LambdaHackrplace groups to consider for stairs; in this case the rarity of items in the group does not affect group choiceg LambdaHackfull cave descriptionh LambdaHackCatch caves with not enough space for all the places. Check the size of the cave descriptions to make sure they fit on screen. Etc.i LambdaHack}Validate all cave kinds. Note that names don't have to be unique: we can have several variants of a cave with a given name.&EFHg[ZGIJKLMNOPQRSTUVWXY\]^_`abcdefhij&EFHg[ZGIJKLMNOPQRSTUVWXY\]^_`abcdefjhi#None "#$6V]^k(p LambdaHackleader switching between levels is automatically done by the server and client is not permitted to change to leaders from other levels (the frequency of leader level switching done by the server is controlled by RuleKind.rleadLevelClips); if the flag is False, server still does a subset of the automatic switching, e.g., when the old leader dies and no other actor of the faction resides on his level, but the client (particularly UI) is expected to do changes as wellq LambdaHackclient is discouraged from leader switching (e.g., because non-leader actors have the same skills as leader); server is guaranteed to switch leader within a level very rarely, e.g., when the old leader dies; if the flag is False, server still does a subset of the automatic switching, but the client is expected to do more, because it's advantageous for that kind of a factionr LambdaHackIf a faction with LeaderUI and LeaderAI has any actor, it has a leader.s LambdaHack5faction can have no leader, is whole under AI controlt LambdaHackleader under AI controlu LambdaHack!leader under UI control, assumes fhasUIv LambdaHack"Properties of a particular player.x LambdaHackname of the playery LambdaHacklnames of actor groups that may naturally fall under player's control, e.g., upon spawning or summoningz LambdaHackufixed skill modifiers to the non-leader actors; also summed with skills implied by ftactic (which is not fixed){ LambdaHack!the player can escape the dungeon| LambdaHack(the faction declared killed if no actors} LambdaHackscore polynomial for the player~ LambdaHackwhether actors have gender LambdaHackNnon-leaders behave according to this tactic; can be changed during the game LambdaHack the mode of switching the leader LambdaHackIdoes the faction have a UI client (for control or passive observation) LambdaHackFConditional polynomial representing score calculation for this player. LambdaHackOutcome of a game. LambdaHackthe faction was eliminated LambdaHack(the faction lost the game in another way LambdaHackgame is supended LambdaHack(the player won by eliminating all rivals LambdaHack$the player escaped the dungeon alive LambdaHackgame is restarted LambdaHack/The specification of players for the game mode. LambdaHackYplayers in the particular team and levels, numbers and groups of their initial members LambdaHackthe initial enmity matrix LambdaHackthe initial aliance matrix LambdaHackJRequested cave groups for particular levels. The second component is the Escape feature on the level. True means it's represented by <, False, by >. LambdaHackGame mode specification. LambdaHacka symbol LambdaHackshort description LambdaHackfrequency within groups LambdaHackplayers taking part in the game LambdaHackarena of the game LambdaHack description LambdaHack)Catch invalid game mode kind definitions. LambdaHackChecks, in particular, that there is at least one faction with fneverEmpty or the game would get stuck as soon as the dungeon is devoid of actors. LambdaHack"Validate game mode kinds together.:nopqrstuvw~zxy{|}:vw~zxy{|}rstunopq$None "#$<V]^k  LambdaHackCWhether a tile does not block vision. Essential for efficiency of FOV, hence tabulated. LambdaHackUWhether a tile has ambient light --- is lit on its own. Essential for efficiency of  Perception, hence tabulated. LambdaHack_Whether actors can walk into a tile. Essential for efficiency of pathfinding, hence tabulated. LambdaHackdWhether a tile is a door, open or closed. Essential for efficiency of pathfinding, hence tabulated. LambdaHackWhether a tile is changable. LambdaHackUWhether a tile is suspect. Essential for efficiency of pathfinding, hence tabulated. LambdaHackWhether one can easily explore a tile, possibly finding a treasure, either spawned there or dropped there by a (dying from poison) foe. Doors can't be explorable since revealing a secret tile should not change it's (walkable and) explorable status. Door status should not depend on whether they are open or not so that a foe opening a door doesn't force us to backtrack to explore it. Still, a foe that digs through a wall will affect our exploration counter and if content lets walls contain threasure, such backtraking makes sense. LambdaHack`Whether a tile kind (specified by its id) has an OpenTo feature and reasonable alter min skill. LambdaHack*Whether a tile kind has the given feature. LambdaHack@Whether a tile kind (specified by its id) has the given feature. LambdaHack@Whether a tile kind (specified by its id) has an OpenTo feature. LambdaHack@Whether a tile kind (specified by its id) has a CloseTo feature.""%None "#$6V]^k$ LambdaHack4Operations for all content types, gathered together. LambdaHack/The standard ruleset used for level operations.&None"#$6KV]^kY LambdaHackWAll items in the dungeon (including in actor inventories), indexed by item identifier. LambdaHackA bag of items, e.g., one of the stores of an actor or the items on a particular floor position or embedded in a particular map tile. LambdaHackNumber of items in a bag, together with recharging timer, in case of items that need recharging, exists only temporarily or auto-activate at regular intervals. LambdaHackFields are intentionally kept non-strict, because they are recomputed often, but not used every time. The fields are, in order: 1. whether the item should be kept in equipment (not in pack nor stash) 2. the total benefit from picking the item up (to use or to put in equipment) 3. the benefit of applying the item to self 4. the (usually negative) benefit of hitting a foe in meleeing with the item 5. the (usually negative) benefit of flinging an item at an opponent  LambdaHackThe map of item kind indexes to identifiers of items that have that kind. Used to update data about items when their kinds become known, e.g., AI item use benefit data.  LambdaHackThe map of item kind indexes to item kind ids. The full map, as known by the server, is 1-1. Because it's sparse and changes, we don't represent it as an (unboxed) vector, until it becomes a bottleneck (if ever, likely on JS, where only vectors are fast).  LambdaHackFull information about an item. LambdaHackcThe secret part of the information about an item. If a faction knows the aspects of the item (the kmConst flag is set or the  itemAspect field is Left), this is a complete secret information. Items that don't need second identification may be identified or not and both cases are OK (their display flavour will differ and that may be the point).The  itemAspect] accessor it to be used unconditionally only on the server where it's guaranteed to be safe. LambdaHackAn index of the kind identifier of an item. Clients have partial knowledge how these idexes map to kind ids. They gain knowledge by identifying items. The indexes and kind identifiers are 1-1. LambdaHackIThe map of item ids to item aspects. The full map is known by the server. LambdaHackEither the explicit obvious kind of the item or the kind it's hidden under, with the details covered under the index indirection. LambdaHackGame items in actor possesion or strewn around the dungeon. The information contained in this time is available to the player from the moment the item is first seen and is never mutated.'Some items are not created identified (IdentityCovered). Then they are presented as having a template kind that is really not their own, though usually close. Full kind information about item's kind is available through the  ItemKindIxy index once the item is identified and full information about the value of item's aspects is available elsewhere (both IdentityObvious and IdentityCovered= items may or may not need identification of their aspects). LambdaHack&the kind of the item, or an indiretion  LambdaHack$lowest level the item was created at! LambdaHack)the faction that created the item, if any" LambdaHack~flavour, always the real one, not hidden; people may not recognize shape, but they remember colour and old vs fancy look# LambdaHack.A unique identifier of an item in the dungeon..      !"#$%&'()*+.# !"     $%&'(*+)'None "#$6V]^k\I LambdaHack&Possible causes of failure of request.)IJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq)IJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq(None "#$6V]^kwv LambdaHack5All actors on the level, indexed by actor identifier.z LambdaHack resource change this player turn{ LambdaHack resource change last player turn| LambdaHack5Actor properties that are changing throughout the game. If they appear dublets of properties of actor kinds, e.g. HP, they may be results of casting the dice specified in their respective actor kind and/or may be modified temporarily, but return to the original value from their respective kind over time.~ LambdaHack#the trunk organ of the actor's body LambdaHackcurrent hit points * 1M LambdaHackHP delta this turn * 1M LambdaHackcurrent calm * 1M LambdaHackcalm delta this turn * 1M LambdaHackcurrent position LambdaHackprevious position, if any LambdaHack current level LambdaHack&faction the actor currently belongs to LambdaHack8trajectory the actor must travel and his travel speed LambdaHackorgans LambdaHackpersonal equipment LambdaHackpersonal inventory pack LambdaHack&number of weapons among eqp and organs LambdaHackis the actor waiting right now? LambdaHackMis a projectile? affects being able to fly through other projectiles, etc. LambdaHackJCurrent physical speed, whether from being pushed or from organs and gear. LambdaHack8The speed from organs and gear; being pushed is ignored. LambdaHack0Whether an actor is braced for combat this clip. LambdaHackChance that a new monster is generated. Depends on the number of monsters already present, and on the level depth and its cave kind. LambdaHack5How long until an actor's smell vanishes from a tile.*vwxyz{|}~*|}~xyz{wv)None"#$FTV]^k> LambdaHack+A view on single, inhabited dungeon level.  RememberedC fields carry a subset of the info in the client copies of levels. LambdaHack,the kind of cave the level is an instance of LambdaHackabsolute depth of the level LambdaHack#remembered items lying on the floor LambdaHack%remembered items embedded in the tile LambdaHackYseen actors at positions on the level; could be recomputed at resume, but small enough LambdaHackremembered level map LambdaHackwidth of the level LambdaHackheight of the level LambdaHackremembered smells on the level LambdaHackpositions of (up, down) stairs LambdaHackpositions of IK.Escape tiles LambdaHack currently remembered clear tiles LambdaHack total number of explorable tiles LambdaHack)local time on the level (possibly frozen) LambdaHack(whether the level is covered in darkness LambdaHackCurrent smell on map tiles. LambdaHackTile kinds on the map. LambdaHackItems located on map tiles. LambdaHackItems located on map tiles. LambdaHack?The complete dungeon is a map from level identifiers to levels. LambdaHackFLevels in the current branch, one level up (or down) from the current. LambdaHackXCompute the level identifier and stair position on the new level, after a level change.FWe assume there is never a staircase up and down at the same position. LambdaHack Query for tile kinds on the map. LambdaHack9Find a random position on the map satisfying a predicate. LambdaHack9Find a random position on the map satisfying a predicate. LambdaHack@Try to find a random position on the map satisfying conjunction of the mandatory and an optional predicate. If the permitted number of attempts is not enough, try again the same number of times without the next optional predicate, and fall back to trying as many times, as needed, with only the mandatory predicate. LambdaHacklevel of the stairs LambdaHackposition of the stairs LambdaHackoptional forced direction LambdaHackcurrent game dungeon LambdaHack5destination level and the pos of its receiving stairs LambdaHackthe number of tries LambdaHacklook up in this map LambdaHackmandatory predicate LambdaHackoptional predicates LambdaHackthe number of tries LambdaHacklook up in this map LambdaHackmandatory predicate LambdaHackoptional predicates LambdaHackgood to have pred. LambdaHackworst case predicates%%*None "#$6V]^k$$ LambdaHack)game difficulty level (HP bonus or malus) LambdaHack1lone wolf challenge (only one starting character) LambdaHack-cold fish challenge (no healing from enemies) LambdaHackThe goal of an actor. LambdaHack(last seen position of the targeted actor LambdaHack)embedded item that can be triggered; in TPoint (TEmbed bag p) _ q usually bag is embbedded in p and q is an adjacent open tile LambdaHackitem lying on the ground LambdaHack!smell potentially left by enemies LambdaHackan unknown tile to be explored LambdaHacka known tile to be patrolled LambdaHackan unspecified goal LambdaHackThe type of na actor target. LambdaHackDtarget an actor; cycle only trough seen foes, unless the flag is set LambdaHacktarget a concrete spot LambdaHack!target position relative to actor LambdaHackCurrent game status. LambdaHackcurrent game outcome LambdaHackdepth of the final encounter LambdaHacknew game group to start, if any LambdaHackGDiplomacy states. Higher overwrite lower in case of asymmetric content. LambdaHackThe faction datatype. LambdaHackindividual name LambdaHackcolor of actors or their frames LambdaHack the player spec for this faction LambdaHackinitial actors LambdaHackdiplomatic mode LambdaHackcause of game end/exit LambdaHackFthe leader of the faction; don't use in place of sleader on clients LambdaHackfaction's shared inventory LambdaHackmembers killed LambdaHack=members killed in the past, by game mode and difficulty level LambdaHack8All factions in the game, indexed by faction identifier. LambdaHack;Tell whether the faction consists of summoned horrors only.YHorror player is special, for summoned actors that don't belong to any of the main players of a given game. E.g., animals summoned during a skirmish game between two hero factions land in the horror faction. In every game, either all factions for which summoning items exist should be present or a horror player should be added to host them. LambdaHack/Check if factions are at war. Assumes symmetry. LambdaHack/Check if factions are allied. Assumes symmetry. LambdaHackGCheck if factions are allied or are the same faction. Assumes symmetry.88+None"#$6KV]^k# LambdaHackBPerception indexed by faction identifier. This can't be added to  FactionDict3, because clients can't see it for other factions.$ LambdaHack<Perception of a single faction, indexed by level identifier.% LambdaHack=The type representing the perception of a faction on a level.) LambdaHackSmelled positions., LambdaHackVisible positions./ LambdaHack.The set of tiles visible by at least one hero.0 LambdaHack,The set of tiles smelt by at least one hero.#$%&'()*+,-./01234,-.)*+%&'($#/01234,None"#$6KV]^kO? LambdaHack1A dictionary from game mode IDs to scores tables.@ LambdaHack(The list of scores, in decreasing order.A LambdaHackA single score record. Records are ordered in the highscore table, from the best to the worst, in lexicographic ordering wrt the fields below. LambdaHack the score LambdaHack)game time spent (negated, so less better) LambdaHack"date of the last game interruption LambdaHackreason of the game interruption  LambdaHackchallenge setup of the game! LambdaHackname of the faction's gplayer" LambdaHack allies lost# LambdaHack foes killedB LambdaHackEmpty score tableC LambdaHackqInsert a new score into the table, Return new table and the ranking. Make sure the table doesn't grow too large.D LambdaHack&Register a new score in a score table.E LambdaHackIShow a single high score, from the given ranking in the high score table.H LambdaHackjShow a screenful of the high scores table. Parameter height is the number of (3-line) scores to be shown.I LambdaHack8Produce a couple of renderings of the high scores table.J LambdaHack:Generate a slideshow with the current and previous scores.D  LambdaHack old table LambdaHack the total value of faction items LambdaHack the total value of dungeon items LambdaHackgame time spent LambdaHackreason of the game interruption LambdaHack current date LambdaHackchallenge setup LambdaHackname of the faction's gplayer LambdaHack allies lost  LambdaHack foes killedJ LambdaHackcurrent score table LambdaHack*position of the current score in the table LambdaHackthe name of the game mode LambdaHack"the timezone where the game is run ?@ABCDEFGHIJ @?BDEFGJACHI-None "#$V]^kS LambdaHack#View on the basic game state. The  remembered fields, in client copies of the state, carry only a subset of the full information that the server keeps. Clients never directly change their State~, but apply atomic actions sent by the server to do so (and/or the server applies the actions to each client state in turn).$ LambdaHackremembered dungeon% LambdaHack)absolute dungeon depth, for item creation& LambdaHack remembered actors in the dungeon' LambdaHackremembered items in the dungeon( LambdaHackRspotted items with the same kind index could be recomputed at resume, but small) LambdaHackremembered sides still in game* LambdaHack%global game time, for UI display only+ LambdaHackremembered content, LambdaHack(total value of human trinkets in dungeon- LambdaHackhigh score table. LambdaHackcurrent game mode/ LambdaHackitem kind discoveries data0 LambdaHack%item aspect data; could be recomputed1 LambdaHackactor aspects; is recomputedd LambdaHack#Initial complete global game state.e LambdaHackInitial empty state.f LambdaHackQLocal state created by removing secret information from global state components.g LambdaHack!Update dungeon data within state.h LambdaHackUpdate dungeon depth.i LambdaHackUpdate the actor dictionary.j LambdaHackUpdate the item dictionary.k LambdaHackUpdate the item kind index map.l LambdaHack!Update faction data within state.m LambdaHack Update global time within state.n LambdaHack?Update content data within state and recompute the cached data.o LambdaHack'Update total gold value in the dungeon.%STUVWXYZ[\]^_`abcdefghijklmnopqrstuvw%STUVWXYZ[\]^_`adefghijklmnopqrstuvwbc.None "#$6V]^k~ LambdaHackindividual map symbol LambdaHackindividual name LambdaHackindividual pronoun LambdaHackindividual map color LambdaHack(The part of speech describing the actor. LambdaHack0The part of speech containing the actor pronoun.{|}~|}~{/None "#$V]^ki LambdaHackJSuffix to append to a basic content name if the content causes the effect.&We show absolute time in seconds, not moves, because actors can have different speeds (and actions can potentially take different time intervals). We call the time taken by one player move, when walking, a move. Turn and clipY are used mostly internally, the former as an absolute time unit. We show distances in stepsY, because one step, from a tile to another tile, is always 1 meter. We don't call steps tilesI, reserving that term for the context of terrain kinds or units of area.0None "#$V]^k# LambdaHack_The part of speech describing the item parameterized by the number of effects/aspects to show. LambdaHack'The part of speech describing the item.1None"#$&'-0FV]^ky LambdaHackpRequests that take game time, indexed by actor ability that is needed for performing the corresponding actions. LambdaHackEBasic form of requests, sent by both AI and UI clients to the server. LambdaHack.Possible forms of requests sent by UI clients. LambdaHackvRequests sent by UI clients to the server. If faction leader is to be changed, it's included as the second component. LambdaHack.Possible forms of requests sent by AI clients. LambdaHackvRequests sent by AI clients to the server. If faction leader is to be changed, it's included as the second component.2None "#$V]^k/ LambdaHackHow much AI benefits from applying the effect. The first component is benefit when applied to self, the second is benefit (preferably negative) when applied to enemy. This represents benefit from using the effect every  avgItemDelayy turns, so if the item is not durable, the value is adjusted down elsewhere. The benefit includes the drawback of having to use the actor's turn, except when there is battle and item is a weapon and so there is usually nothing better to do than to melee, or when the actor is stuck or idle or laying in wait or luring an enemy from a safe distance. So there is less than averageTurnValue included in each benefit, so in case when turn is not spent, e.g, periodic or conditions, the difference in value is only slight. LambdaHackCompute the whole m structure, containing various facets of AI item preference, for an item with the given effects and aspects.Note: result has non-strict fields, so arguments are forced to avoid leaks. When AI looks at items (including organs) more often, force the fields.  3None "#$NV]^kD LambdaHack+Calculate loot's worth for a given faction. LambdaHack/Price an item, taking count into consideration.  LambdaHackwChecks if the actor is present on the current level. The order of argument here and in other functions is set to allow b <- getsState (memActor a)  LambdaHack'Get current time from the dungeon data.  LambdaHackwDetermine the dungeon level of the container. If the item is in a shared stash, the level depends on which actor asks.  LambdaHackRequire that any non-dying foe is adjacent. We include even projectiles that explode when stricken down, because they can be caught and then they don't explode, so it makes sense to focus on handling them. If there are many projectiles in a single adjacent position, we only test the first one, the one that would be hit in melee (this is not optimal if the actor would need to flee instead of meleeing, but fleeing with *many* projectiles adjacent is a possible waste of a move anyway).  LambdaHackCheck if any non-dying foe (projectile or not) is adjacent to any of our normal actors (whether they can melee or just need to flee, in which case alert is needed so that they are not slowed down by others). This is needed only by AI and computed as lazily as possible.>                          >                          4None "#$NV]^kL  LambdaHackOMonad for reading game state. A state monad with state modification disallowed (another constraint is needed to permit that). The basic server and client monads are like that, because server and clients freely modify their internal session data, but don't modify the main game state, except in very restricted and synchronized way. ! " # $ % & ' ( ! " # $ % & ' (5None "#$KV]^kP ) LambdaHack>A collection of mappings from slot labels to item identifiers. , LambdaHackHSlot label. Usually just a character. Sometimes with a numerical prefix. 3 LambdaHackJAssigns a slot to an item, e.g., for inclusion in the inventory of a hero. ) * + , - . / 0 1 2 3 4 5 6 , - . / ) * + 0 1 2 3 4 5 66None "#$V]^kX > LambdaHack}A list of active screenfulls to be shown one after another. Each screenful has an independent numbering of rows and columns. @ LambdaHackAn Overlay of text with an associated list of keys or slots that activated when the specified screen position is pointed at. The list should be sorted wrt rows and then columns. A LambdaHack>A key or an item slot label at a given position on the screen. > ? @ A B C D E F G H I J K A @ > ? B C D G H J K E F I7None "#$V]^kb N LambdaHackException signifying that atomic action failed because the information it carries is inconsistent with the client's state, (e.g., because the client knows too little to understand the command or already deduced the state change from earlier commands or is confused, amnesiac or sees illusory actors or tiles). Whenever we know the failure is logically impossible, we don't throw the  AtomicFail. exception, but insert a normal assertion or error* call, which are never caught nor handled. P LambdaHack>The monad for writing to the main game state. Atomic updates ( UpdAtomic%) are given semantics in this monad.! N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n! P Q N O R S T U V W X Y \ a b e k l m n Z [ ] ^ _ ` c d f g h i j8None "#$6V]^km q LambdaHackNDescription of how tile altering is triggered and communicated to the player. v LambdaHackRDescription of how item manipulation is triggered and communicated to the player. { LambdaHack)Abstract syntax of human player commands.  LambdaHackThis triple of command categories, description and the command term itself defines the meaning of a human command as entered via a keypress, mouse click or chosen from a menu.  LambdaHackSymbolic representation of areas of the screen used to define the meaning of mouse button presses relative to where the mouse points to.t q r s t u v w x y z { | } ~  t { | } ~  v w x y z q r s t u9None "#$6V]^kwy  LambdaHack)Options that affect the UI of the client.  LambdaHack(the option for Vi keys takes precendence  LambdaHack'because the laptop keys are the default  LambdaHack'HP percent at which warning is emitted.  LambdaHack+Hardwired commandline arguments to process.  LambdaHackRead and parse UI config file.  LambdaHack&Modify client options with UI options.                                :None "#$V]^kz  LambdaHackDKey-command mappings to be specified in content and used for the UI. ! LambdaHackdefault client UI commands ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < ! " # $ & ' ( ) * + , - . / 1 2 3 4 5 7 9 : ; < % 0 6 8;None "#$NV]^kb = LambdaHack;Bindings and other information about human player commands. ? LambdaHackbinding of keys to commands @ LambdaHack:the properly ordered list of commands for the help menu A LambdaHackand from commands to their keys B LambdaHackpCreate binding of keys to movement and other standard commands, as well as commands defined in the config file. C LambdaHack9Produce a set of help/menu screens from the key bindings. D LambdaHack3Turn the specified portion of bindings into a menu. B LambdaHack%default key bindings from the content LambdaHackUI client options LambdaHackconcrete binding = > ? @ A B C D = > ? @ A B C D<None "#$KV]^k) I LambdaHackBState of last recorded and currently being recorded key sequences. K LambdaHack'accumulated keys of the current command L LambdaHack.keys of the rest of the recorded command batch M LambdaHack/space left for commands to record in this batch N LambdaHackParameters of the current run. P LambdaHack"the original leader from run start Q LambdaHack!the list of actors that take part R LambdaHackHinitial run continuation by any run participant, including run leader S LambdaHack!message with the next stop reason T LambdaHack)waiting for others to move out of the way U LambdaHack Current aiming mode of a client. X LambdaHackThe information that is used across a client playing session, including many consecutive games in a single session. Some of it is saved, some is reset when a new playing session starts. An important component is the frontend session. Z LambdaHackthe common xhair [ LambdaHackassigned actor UI presentations \ LambdaHackmap from slots to items ] LambdaHacklast item move stores ^ LambdaHackconnection with the frontend _ LambdaHackbinding of keys to commands ` LambdaHackUI options as set by the player a LambdaHack aiming mode b LambdaHacklast mouse aiming not vacuus c LambdaHackNselected item, if any, it's store and whether to override suitability check d LambdaHack$the set of currently selected actors e LambdaHack%parameters of the current run, if any f LambdaHackhistory of messages g LambdaHackmouse pointer position h LambdaHackstate of key sequence recording i LambdaHackstate of key sequence playback j LambdaHack!actors that just got out of sight k LambdaHack"player just waited this many times l LambdaHackmark leader and party FOV m LambdaHack#mark smell, if the leader can smell n LambdaHackindices of last used menu items o LambdaHackcurrent level needs displaying p LambdaHack'how to show keys hints when no messages q LambdaHack&whether no report created last UI turn r LambdaHackthis session start time s LambdaHackthis game start time t LambdaHack4clips from start of session to current game start u LambdaHackthis game current frame count v LambdaHack:frame count from start of session to current game start6 E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z6 X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v U V W N O P Q R S T I J K L M E F G H w x y z=None "#$6V]^kR  LambdaHackYSymbolic representation of text messages sent by server to clients and shown to players.  LambdaHackxAbstract syntax of atomic special effects, that is, atomic commands that only display special effects and don't change S.  LambdaHackTAbstract syntax of atomic updates, that is, atomic commands that really change the S. Most of them are an encoding of a game state diff, though they also carry some intentional hints that help clients determine whether and how to communicate it to players.  LambdaHackPAbstract syntax of atomic commands, that is, atomic game state transformations.  LambdaHackatomic updates  LambdaHackatomic special effectsb b >None "#$V]^k  LambdaHackThe type representing visibility of atomic commands to factions, based on the position of the command, etc. Note that the server sees and smells all positions.  LambdaHack(whomever sees all the positions, notices  LambdaHack observers and the faction notice  LambdaHack*whomever smells all the positions, notices  LambdaHack(only the faction notices, server doesn't  LambdaHackfaction and server notices  LambdaHackonly the server notices  LambdaHackeverybody notices  LambdaHack$never broadcasted, but sent manually  LambdaHackProduce the positions where the atomic update takes place or, more generally, the conditions under which the update can be noticed by a client.#The goal of this mechanics is to ensure that atomic commands involving some positions visible by a client convey similar information as the client would get by directly observing the changes of the portion of server state limited to the visible positions. Consequently, when the visible commands are later applied to the client's state, the state stays consistent --- in sync with the server state and correctly limited by visiblity. There is some wiggle room both in what "in sync" and "visible" means and how they propagate through time.E.g., UpdDisplaceActor in a black room between two enemy actors, with only one actor carrying a 0-radius light would not be distinguishable by looking at the state (or the screen) from  UpdMoveActor' of the illuminated actor, hence such UpdDisplaceActor should not be observable, but  UpdMoveActor in similar cotext would be (or the former should be perceived as the latter). However, to simplify, we assign as strict visibility requirements to  UpdMoveActor as to UpdDisplaceActor and fall back to  UpdSpotActora (which provides minimal information that does not contradict state) if the visibility is lower.  LambdaHackBProduce the positions where the atomic special effect takes place.  LambdaHack?Decompose an atomic action that is outside a client's visiblity. The decomposed actions give less information that the original command, but some of them may fall within the visibility range of the client. The original action may give more information than even the total sum of all actions it's broken into. E.g.,  UpdMoveActorq informs about the continued existence of the actor between moves vs popping out of existence and then back in.This is computed in server's State$ from before performing the command.  LambdaHackeGiven the client, its perception and an atomic command, determine if the client notices the command.  LambdaHackZDetermine whether the server would see a command that has the given visibilty conditions.              ?None "#$<V]^k  LambdaHackmThe game-state semantics of atomic game commands. There is no corresponding definition for special effects ( ), because they don't modify S.For each of the commands, we are guaranteed that the client, the command is addressed to, perceives all the positions the command affects (as computed by >u). In the code for each semantic function we additonally verify the client is aware of any relevant items and/or actors and we throw the  AtomicFail exception if it's not. The server keeps copies of all clients' states and, before sending a command to a client, applies it to the client's state copy. If  AtomicFail is signalled, the command is ignored for that client. This enables simpler server code that addresses commands to all clients that can see it, even though not all are able to process it.-                   ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6-                   ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6vNone "#$V]^ks N O P Q S    s    P Q N O S@None "#$6V]^k b 7 LambdaHack(Actor's target and a path to it, if any. ; LambdaHacklPathfinding distances to all reachable positions of an actor and a shortest paths to some of the positions. A LambdaHack,Client state, belonging to a single faction. C LambdaHack&a parameter of the aiming digital line D LambdaHack$targets of our actors in the dungeon E LambdaHack#the position when fleeing requested F LambdaHack the set of fully explored levels G LambdaHackpathfinding data for our actors H LambdaHack!atomic commands performed to date I LambdaHacktremembered AI benefits of items; could be recomputed at resume, but they are costly to generate and not too large J LambdaHack#faction perception indexed by level K LambdaHack'cached alter ability data for positions L LambdaHackcurrent random generator M LambdaHackIcandidate new leader of the faction; Faction.gleader is the old leader N LambdaHack faction controlled by the client O LambdaHackexit the game loop P LambdaHackcurrent game challenge setup Q LambdaHacknext game challenge setup R LambdaHacknext game scenario number S LambdaHack whether to mark suspect features T LambdaHack"whether we are in melee, per level U LambdaHack'won games at particular difficulty lvls V LambdaHackclient options W LambdaHack Initial empty game client state. X LambdaHack Cycle the  S setting. Y LambdaHack-Update target parameters within client state. Z LambdaHack(Get target parameters from client state. [ LambdaHack:Update picked leader within state. Verify actor's faction.' 7 8 9 : ; = < > ? @ A B V C D E F G H I J K L M N O P Q R S T U W X Y Z [ \ ]' A B V C D E F G H I J K L M N O P Q R S T U @ ; = < > ? 7 8 9 : W X Y Z [ \ ]ANone "#$V]^k d LambdaHack"Monad for writing to client state. k LambdaHackFInvoke pseudo-random computation with the generator kept in the state. l LambdaHackGInvoke pseudo-random computation, don't change generator kept in state. d e f g h i j k l d e f g h i j k lBNone "#$-V]^k^ m LambdaHack'Get the current perception of a client. n LambdaHack,Calculate the position of an actor's target. o LambdaHackCounts the number of steps until the projectile would hit an actor or obstacle. Starts searching with the given eps and returns the first found eps for which the number reaches the distance between actor and target position, or Nothing if none can be found. m n o p q r s t m n o p q r s tCNone "#$NV]^k LambdaHack3Level positions with tiles that have ambient light. B LambdaHack3Level positions that pass through light and vision. F LambdaHackELevel positions with either ambient light or shining items or actors. I LambdaHack{Map from level positions that currently hold item or actor(s) with shine to the maximum of radiuses of the shining lights.\Note that floor and (many projectile) actors light on a single tile should be additive for FovShine to be incrementally updated.FovShine should not even be kept in  StateServer., because it's cheap to compute, compared to FovLucid; and invalidated almost as often (not invalidated only by  UpdAlterTile). L LambdaHack;Server cache of perceptions, indexed by faction identifier. M LambdaHackNServer cache of perceptions of a single faction, indexed by level identifier. X LambdaHackVisually reachable positions (light passes through them to the actor). They need to be intersected with lucid positions to obtain visible positions. [ LambdaHack/Main perception validity map, for all factions. _ LambdaHackfCompute positions visible (reachable and seen) by the party. A position is lucid, if it's lit by an ambient light or by a weak, portable light source, e.g,, carried by an actor. A reachable and lucid position is visible. Additionally, positions directly adjacent to an actor are assumed to be visible to him (through sound, touch, noctovision, whatever). b LambdaHackCompute positions reachable by the actor. Reachable are all fields on a visually unblocked path from the actor position. Also compute positions seen by noctovision and perceived by smell. d LambdaHackUpdate lights on the level. This is needed every (even enemy) actor move to show thrown torches. We need to update lights even if cmd doesn't change any perception, so that for next cmd that does, but doesn't change lights, and operates on the same level, the lights are up to date. We could make lights lazy to ensure no computation is wasted, but it's rare that cmd changed them, but not the perception (e.g., earthquake in an uninhabited corner of the active arena, but the we'd probably want some feedback, at least sound). g LambdaHackCompute all dynamically lit positions on a level, whether lit by actors or shining floor items. Note that an actor can be blind, in which case he doesn't see his own light (but others, from his or other factions, possibly do). h LambdaHack>Calculate the perception and its caches for the whole dungeon. n LambdaHack"Calculate perception of a faction. p LambdaHackPerform a full scan for a given position. Returns the positions that are currently in the field of view. The Field of View algorithm to use is passed in the second argument. The actor's own position is considred reachable by him. p LambdaHackthe array with clear points LambdaHackscanning radius LambdaHackposition of the spectator5 < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p5 \ ] ^ [ X Y Z S T U V W R N O P Q M L I J K F G H E B C D A > ? @ = _ ` a c d h b e f g i j k l m n o < pRNone "#$KV]^kD  LambdaHackFlavours assigned by the server to item kinds, in this particular game. This is total and never changes, hence implemented as vector. Morally, it's indexed by ContentId ItemKind and elements are Flavour.  LambdaHack<The map of item ids to item seeds, needed for item creation.  LambdaHackThe reverse map to  DiscoveryKindu, needed for item creation. This is total and never changes, hence implemented as vector. Morally, it's indexed by ContentId ItemKind and elements are  ItemKindIx.  LambdaHackVReverse item map, for item creation, to keep items and item identifiers in bijection.  LambdaHack,The essential item properties, used for the ItemRev hash table from items to their ids, needed to assign ids to newly generated items. All the other meaningul properties can be derived from them. Note 1: jlid is not meaningful; it gets forgotten if items from different levels roll the same random properties and so are merged. However, the first item generated by the server wins, which in case of normal items (not organs), is most of the time the lower absolute jlidD (shallower depth) item, which makes sense for the client. Note 2: ItemSeed instead of  AspectRecordA is not enough, becaused different seeds may result in the same  AspectRecordB and we don't want such items to be distinct in UI and elsewhere.  LambdaHack#Build an item with the given stats.  LambdaHack Generate an item based on level.2 LambdaHackAssigns flavours to item kinds. Assures no flavor is repeated for the same symbol, except for items with only one permitted flavour.  LambdaHack:Randomly chooses flavour for all item kinds for this game. wSafe "#$V]^kE3456789:SNone "#$V]^kH  LambdaHack6Repeatedly save serialized snapshots of current state.  LambdaHackhRestore a saved game, if it exists. Initialize directory structure and copy over data files, if needed. TNone "#$V]^kX  LambdaHack8The monad that gives the client access to UI operations.  LambdaHack%The row where the dungeon map starts.  LambdaHackBWrite a UI request to the frontend and read a corresponding reply.  LambdaHackAPush frames or delays to the frame queue. The frames depict the lid level.  LambdaHackWrite F UI request to the frontend, read the reply, set pointer, return key.  LambdaHack@Initialize the frontend chosen by the player via client options.  LambdaHackThe part of speech describing the actor or "you" if a leader of the client's faction. The actor may be not present in the dungeon.  LambdaHackThe part of speech with the actor's pronoun or "you" if a leader of the client's faction. The actor may be not present in the dungeon.  LambdaHackThe part of speech describing the actor (designated by actor id and present in the dungeon) or a special name if a leader of the observer's faction.  LambdaHack9Try to read saved client game state from the file system.* * UNone "#$QV]^kg  LambdaHack(Continue running in the given direction.  LambdaHack8This function implements the actual logic of running. It checks if we have to stop running because something interesting cropped up, it ajusts the direction given by the vector if we reached a corridor's corner (we never change direction except in corridors) and it increments the counter of traversed tiles.Note that while goto-xhair commands ignore items on the way, here we stop wnenever we touch an item. Running is more cautious to compensate that the player cannot specify the end-point of running. It's also more suited to open, already explored terrain. Goto-xhair works better with unknown terrain, e.g., it stops whenever an item is spotted, but then ignores the item, leaving it to the player to mark the item position as a goal of the next goto.  VNone "#$V]^kp  LambdaHack$Add a message to the current report.  LambdaHackIAdd a message to the current report. Do not report if it was a duplicate.  LambdaHack#Add a prompt to the current report.  LambdaHackHAdd a prompt to the current report. Do not report if it was a duplicate.  LambdaHackAdd a prompt to the current report with 0 copies for the purpose of collating cuplicates. Do not report if it was a duplicate.  LambdaHack)Add a prompt with basic keys description.  LambdaHack7Store new report in the history and archive old report.  WNone "#$V]^kr  LambdaHack1Draw the whole screen: level map and status area.  XNone "#$V]^k|  LambdaHackDraw the current level with the overlay on top. If the overlay is too long, it's truncated. Similarly, for each line of the overlay, if it's too wide, it's truncated.  LambdaHackPush the frame depicting the current level to the frame queue. Only one line of the report is shown, as in animations, because it may not be our turn, so we can't clear the message to see what is underneath.  LambdaHack5Render animations on top of the current screen frame.  LambdaHackARender and display animations on top of the current screen frame.  YNone "#$V]^kO  LambdaHackXAdd current report to the overlay, split the result and produce, possibly, many slides.  LambdaHack&Split current report into a slideshow.  LambdaHack=Split current report into a slideshow. Keep report unchanged.  LambdaHackDisplay a message. Return value indicates if the player wants to continue. Feature: if many pages, only the last SPACE exits (but first ESC).  LambdaHackiDisplay a message. Ignore keypresses. Feature: if many pages, only the last SPACE exits (but first ESC).  LambdaHack~Print a yes/no question and return the player's answer. Use black and white colours to turn player's attention to the choice.  LambdaHackDisplay a, potentially, multi-screen menu and return the chosen key or item slot label (and the index in the whole menu so that the cursor can again be placed at that spot next time menu is displayed).HThis function is the only source of menus and so, effectively, UI modes. ZNone "#$V]^k  LambdaHack9Message describing the cause of failure of human command.  LambdaHackCSwitches current member to the next on the level, if any, wrapping.  LambdaHackGSwitches current member to the previous in the whole dungeon, wrapping.  LambdaHack1Select a faction leader. False, if nothing to do.  LambdaHack9Produces a textual description of the tile at a position.  LambdaHack7Produces a textual description of actors at a position.  LambdaHack6Produces a textual description of items at a position.  LambdaHackcan be seen right now? LambdaHackposition to describe LambdaHackthe actor that looks LambdaHacklevel the position is at  LambdaHackposition to describe LambdaHacklevel the position is at  LambdaHackcan be seen right now? LambdaHackposition to describe LambdaHackthe actor that looks            [None "#$-V]^kZ  LambdaHackLet a human player choose any item from a given group. Note that this does not guarantee the chosen item belongs to the group, as the player can override the choice. Used e.g., for applying and projecting.  LambdaHackDisplay all items from a store and let the human player choose any or switch to any other store. Used, e.g., for viewing inventory and item descriptions.  LambdaHackLet the human player choose a single, preferably suitable, item from a list of items. Don't display stores empty for all actors. Start with a non-empty store.; LambdaHackVLet the human player choose a single, preferably suitable, item from a list of items.  LambdaHack which items to consider suitable LambdaHack'specific prompt for only suitable items LambdaHackgeneric prompt LambdaHackinitial legal modes LambdaHack)legal modes after Calm taken into account  LambdaHackhow to describe suitable items LambdaHack initial mode  LambdaHack which items to consider suitable LambdaHack'specific prompt for only suitable items LambdaHackgeneric prompt LambdaHackinitial legal modes LambdaHack(legal modes with Calm taken into account LambdaHackFwhether to ask, when the only item in the starting mode is suitable LambdaHack,whether to permit multiple items as a result; LambdaHack which items to consider suitable LambdaHack'specific prompt for only suitable items LambdaHackgeneric prompt LambdaHackfirst mode, legal or not LambdaHackthe (rest of) legal modes LambdaHackFwhether to ask, when the only item in the starting mode is suitable LambdaHack,whether to permit multiple items as a result LambdaHackall legal modes       \None "#$V]^kΩ  LambdaHackPDisplay items from a given container store and possibly let the user chose one.  LambdaHack`Check whether one is permitted to aim (for projecting) at a target (this is only checked for actor targets so that the player doesn't miss enemy getting out of sight; but for positions we let player shoot at obstacles, e.g., to destroy them, and shoot at a lying item and then at its posision, after enemy picked up the item). Returns a different seps% if needed to reach the target actor.Note: Perception is not enough for the check, because the target actor can be obscured by a glass wall or be out of sight range, but in weapon range.  LambdaHack On top of permittedProjectClientJ, it also checks LOS, legality of aiming at the target, projection range. ! LambdaHackHSwitch current member to the next on the viewed level, if any, wrapping. " LambdaHackESwitch current member to the previous in the whole dungeon, wrapping. . LambdaHack0End aiming mode, rejecting the current position. / LambdaHackMAccept the current x-hair position as target, ending aiming mode, if active. 0 LambdaHack0End aiming mode, accepting the current position. 4 LambdaHack\Perform look around in the current position of the xhair. Does nothing outside aiming mode. 5 LambdaHack$Move the xhair. Assumes aiming mode. 6 LambdaHack Start aiming. 7 LambdaHack^Cycle aiming mode. Do not change position of the xhair, switch among things at that position. : LambdaHackvChange the displayed level in aiming mode to (at most) k levels shallower. Enters aiming mode, if not already in one. ; LambdaHack Tweak the eps& parameter of the aiming digital line.4               ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E4           ! " # % & ' ( ) * + , - . / 2 3 5 6 7 8 9 : ; = > ? @ B D E     $ 0 1 4 < A C]None "#$V]^k F LambdaHackVisualize atomic updates sent to the client. This is done in the global state after the command is executed and after the client state is modified by the command. W LambdaHack=Display special effects (text, animation) sent to the client. F G H I J K L M N O P Q R S T U V W X Y F W G H I J K L M N O P Q R S T U V X Y^None"#$&'-V]^kA Z LambdaHackzPick command depending on area the mouse pointer is in. The first matching area is chosen. If none match, only interrupt. b LambdaHack'Leader waits a turn (and blocks, etc.). c LambdaHack:Leader waits a 1/10th of a turn (and doesn't block, etc.). e LambdaHack3Actor attacks an enemy actor or his own projectile. f LambdaHack"Actor swaps position with another. g LambdaHackELeader moves or searches or alters. No visible actor at the position. u LambdaHackGAsk for a direction and alter a tile in the specified way, if possible. v LambdaHack;Try to alter a tile using a feature in the given direction. w LambdaHack:Try to alter a tile using a feature at the given position.We don't check if the tile is interesting, e.g., if any embedded item can be triggered, because the player explicitely requested the action. Consequently, even if all embedded items are recharching, the time will be wasted and the server will describe the failure in detail. x LambdaHack6Verify important effects, such as fleeing the dungeon.]This is contrived for now, the embedded items are not analyzed, but only recognized by name. z LambdaHack-Guess and report why the bump command failed. { LambdaHack6Try to alter a tile using a feature under the pointer. | LambdaHackDisplay command help. } LambdaHack4Display hint or, if already displayed, display help. ~ LambdaHackDisplay the dashboard.  LambdaHackDisplay the main menu.  LambdaHackDisplay the settings menu.  LambdaHackDisplay the challenges menu.6 Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~  6 Z \ ] ^ _ ` a b c d h i l m n q s u { | } ~  [ e f g j k o p r t v w x y z _None "#$V]^k'  LambdaHackDThe semantics of human player commands in terms of the client monad.Some time cosuming commands are enabled even in aiming mode, but cannot be invoked in aiming mode on a remote level (level different than the level of the leader), which is caught here.  LambdaHackNCommands that are forbidden on a remote level, because they would usually take time when invoked on one, but not necessarily do what the player expects. Note that some commands that normally take time are not included, because they don't take time in aiming mode or their individual sanity conditions include a remote level check.  `None "#$V]^k  LambdaHack"Handle the move of a human player.  LambdaHackALet the human player issue commands until any command takes time.1     B X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v F W 1 X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v F W     B aNone "#$<V]^k ]  LambdaHackBMonad for executing atomic game state transformations on a client.  LambdaHack3Execute an atomic update that changes the client's S.  LambdaHackvPut state that is intended to be the result of performing an atomic update by the server on its copy of the client's S.  LambdaHack:Client monad in which one can send requests to the client.  LambdaHackHandle server responses.CNote that for clients communicating with the server over the net, RespUpdAtomicNoState should be used, because executing a single command is cheaper than sending the whole state over the net. However, for the standalone exe mode, with clients in the same process as the server, a pointer to the state set with  execPutState is cheaper.  bNone "#$<V]^k  LambdaHack@Client monad in which one can receive responses from the server.  LambdaHack&The main game loop for an AI or UI client. It receives responses from the server, changes internal client state accordingly, analyzes ensuing human or AI commands and sends resulting requests to the server. Depending on whether it's an AI or UI client, it sends AI or human player requests.BThe loop is started in client state that is empty except for the sside and seps fields, see  W.  xNone "#$V]^k)     )      cNone "#$V]^kj  LambdaHackGOptions that affect the behaviour of the server (including game rules).  LambdaHack Default value of server options.  dNone "#$V]^k-  LambdaHackAPosition in time for each actor, grouped by level and by faction.  LambdaHackwState with server-specific data, including a copy of each client's basic game state, but not the server's basic state.  LambdaHackabsolute times of next actions  LambdaHackIactors currently in time stasis, invulnerable to time warps until move  LambdaHack#reverse map, used for item creation  LambdaHackalready generated unique items  LambdaHackmap from item ids to item seeds  LambdaHack&reverse id map, used for item creation  LambdaHackassociation of flavour to items  LambdaHackstores next actor index  LambdaHackstores next item index  LambdaHack!atomic commands performed to date  LambdaHack&each faction state, as seen by clients  LambdaHackperception of all factions  LambdaHack$perception validity for all factions  LambdaHack perception cache of all factions  LambdaHack"ambient or shining light positions  LambdaHackclear tiles positions  LambdaHackambient light positions  LambdaHack active arenas  LambdaHackwhether active arenas valid  LambdaHackcurrent random generator  LambdaHackinitial random generators  LambdaHack@exit game loop after clip's end; usually no game save follows  LambdaHack&exit game loop ASAP; usually with save  LambdaHack&write savegame to file after loop exit  LambdaHackcurrent commandline options  LambdaHackoptions for the next game  LambdaHack!Initial, empty game server state.! ! eNone "#$/V]^k0  LambdaHack5Parser for server options from commandline arguments.  fNone "#$V]^k@[  LambdaHack:The monad for executing atomic game state transformations.  LambdaHackfExecute an atomic command that changes the state on the server and on all clients that can notice it.  LambdaHackEExecute an atomic command that changes the state on the server only.  LambdaHackRExecute an atomic command that changes the state on the given single client only.  LambdaHackZExecute an atomic command that changes the state on the given single client only. Catch  N' and indicate if it was in fact raised.  LambdaHack=Execute an atomic command that only displays special effects.  LambdaHack:Dumps to stdout the RNG states from the start of the game.  LambdaHackCRead the high scores dictionary. Return the empty table if no file.  LambdaHack+Generate a new score, register it and save.  LambdaHackFInvoke pseudo-random computation with the generator kept in the state.  LambdaHack[Gets a random generator from the user-submitted options or, if not present, generates one.  gNone "#$V]^kB LambdaHack-Mapping over actor's items from a give store.   hNone "#$V]^kF" LambdaHackEffect of atomic actions on server state is calculated with the global state from after the command is executed (except where the supplied oldState is used).          iNone "#$V]^kG8 !"#$"# !$jNone "#$V]^kQ& LambdaHack>The server monad with the ability to communicate with clients.* LambdaHack:Connection channel between the server and a single client./ LambdaHackGConnection information for all factions, indexed by faction identifier.6 LambdaHackIf the  AtomicFailB conditions hold, send a command to client, otherwise do nothing.7 LambdaHack*Send a command to client, crashing if the  AtomicFail< conditions don't hold when executed on the client's state.> LambdaHackUpdate connections to the new definition of factions. Connect to clients in old or newly spawned threads that read and write directly to the channels.&'()*+,-./0123456789:;<=>?0/*+,-.&'()56789:;<=>?1234kNone "#$NV]^kUA LambdaHack5Send an atomic action to all clients that can see it.B LambdaHack)Messages for some unseen atomic commands.C LambdaHackMessages for some unseen sfx.@ABCDEFAD@BCEFlNone "#$NV]^kfJ LambdaHackCGenerate the atomic updates that jointly perform a given item move.N LambdaHack2Tell whether a faction that we know is still in game, keeps arena. Keeping arena means, if the faction is still in game, it always has a leader in the dungeon somewhere. So, leaderless factions and spawner factions do not keep an arena, even though the latter usually has a leader for most of the game.U LambdaHack-actor projecting the item (is on current lvl) LambdaHack!target position of the projectile LambdaHackdigital line parameter LambdaHack'whether to start at the source position LambdaHackthe item to be projected LambdaHack/whether the items comes from floor or inventory LambdaHackwhether the item is a blastV LambdaHack-actor projecting the item (is on current lvl) LambdaHack starting point of the projectile LambdaHack(rest of the trajectory of the projectile LambdaHackthe item to be projected LambdaHack/whether the items comes from floor or inventory LambdaHackwhether the item is a blastGHIJKLMNOPQRSTUVWXYZ[\]^_GHIJMOQRSTUWX[\]KLNPVYZ^_mNone "#$V]^knf LambdaHackTFind starting postions for all factions. Try to make them distant from each other. Place as many of the factions, as possible, over stairs, starting from the end of the list, including placing the last factions over escapes (we assume they are guardians of the escapes). This implies the inital factions (if any) start far from escapes.g LambdaHack)Apply options that don't need a new game.`abcdefg`adgbcefnNone "#$V]^kh LambdaHackfSpawn, possibly, a monster according to the level's actor groups. We assume heroes are never spawned.k LambdaHack*Advance the move time for the given actor.l LambdaHackAdd communication overhead time delta to all non-projectile, non-dying faction's actors, except the leader. Effectively, this limits moves of a faction on a level to 10, regardless of the number of actors and their speeds. To avoid animals suddenly acting extremely sluggish whenever monster's leader visits a distant arena that has a crowd of animals, overhead applies only to actors on the same level. Since the number of active levels is limited, this bounds the total moves per turn of each faction as well.4Leader is immune from overhead and so he is faster than other faction members and of equal speed to leaders of other factions (of equal base speed) regardless how numerous the faction is. Thanks to this, there is no problem with leader of a numerous faction having very long UI turns, introducing UI lag.m LambdaHackOSwap the relative move times of two actors (e.g., when switching a UI leader).hijklmnohiklmnojoNone "#$NV]^k { LambdaHackThe source actor affects the target actor, with a given item. If any of the effects fires up, the item gets identified. Note that using raw damage (beating the enemy with the magic wand, for example) does not identify the item.Note that if we activate a durable item, e.g., armor, from the ground, it will get identified, which is perfectly fine, until we want to add sticky armor that can't be easily taken off (and, e.g., has some maluses).| LambdaHackThe source actor affects the target actor, with a given effect and power. Both actors are on the current level and can be the same actor. The item may or may not still be in the container. The boolean result indicates if the effect actually fired up, as opposed to fizzled. LambdaHackThe faction leaves the dungeon. LambdaHackaAdvance target actor time by this many time clips. Not by actor moves, to hurt fast actors more. LambdaHack}Give target actor the given number of extra moves. Don't give an absolute amount of time units, to benefit slow actors more. LambdaHackXTeleport the target actor. Note that projectiles can be teleported, too, for extra fun. LambdaHackAMake the target actor drop items in a store from the given group. LambdaHackDrop a single actor's item. Note that if there are multiple copies, at most one explodes to avoid excessive carnage and UI clutter (let's say, the multiple explosions interfere with each other or perhaps larger quantities of explosives tend to be packaged more safely). LambdaHackMSend the target actor flying like a projectile. The arguments correspond to ToThrow and Linger properties of items. If the actors are adjacent, the vector is directed outwards, if no, inwards, if it's the same actor, boldpos is used, if it can't, a random outward vector of length 10 is picked. LambdaHack3Make the target actor drop his best weapon (stack). LambdaHackActivate all items with the given symbol in the target actor's equipment (there's no variant that activates a random one, to avoid the incentive for carrying garbage). Only one item of each stack is activated (and possibly consumed).4pqrstuvwxyz{|}~4twxzvpqrsuy{|}~pNone"#$&'V]^k  LambdaHackLThe semantics of server commands. AI always takes time and so doesn't loop. LambdaHackGThe semantics of server commands. Only the first two cases affect time. LambdaHack(This is a shorthand. Instead of setting bwait in ReqWaitU and unsetting in all other requests, we call this once before executing a request. LambdaHack@Clear deltas for Calm and HP for proper UI display and AI hints. LambdaHackAdd a smell trace for the actor to the level. For now, only actors with gender leave strong and unique enough smell. If smell already there and the actor can smell, remove smell. Projectiles are ignored. As long as an actor can smell, he doesn't leave any smell ever. LambdaHack]Actor moves or attacks. Note that client may not be able to see an invisible monster so it's the server that determines if melee took place, etc. Also, only the server is authorized to check if a move is legal and it needs full context for that, e.g., the initial actor position to check if melee attack does not try to reach to a distant tile. LambdaHackResolves the result of an actor moving into another. Actors on unwalkable positions can be attacked without any restrictions. For instance, an actor embedded in a wall can be attacked from an adjacent position. This function is analogous to projectGroupItem, but for melee and not using up the weapon. No problem if there are many projectiles at the spot. We just attack the one specified. LambdaHack+Actor tries to swap positions with another. LambdaHackSearch and/or alter the tile. LambdaHack Do nothing.Something is sometimes done in . LambdaHack-actor projecting the item (is on current lvl) LambdaHack!target position of the projectile LambdaHackdigital line parameter LambdaHackthe item to be projected LambdaHack/whether the items comes from floor or inventory LambdaHack-actor applying the item (is on current level) LambdaHackthe item to be applied LambdaHackthe location of the itemqNone "#$V]^kLJ LambdaHack%Continue or exit or restart the game. LambdaHackDrop all actor's items. LambdaHack$Save game on server and all clients.rNone"#$&'V]^kW LambdaHack\Start a game session, including the clients, and then loop, communicating with the clients.7The loop is started in server state that is empty, see  . LambdaHackHandle a clip (the smallest fraction of a game turn for which a frame may potentially be generated). Run the leader and other actors moves. Eventually advance the time and repeat. LambdaHackHandle the end of every clip. Do whatever has to be done every fixed number of clips, e.g., monster generation. Advance time. Perform periodic saves, if applicable.|This is never run if UI requested save or exit or restart and it's correct, because we know nobody moved and no time was or needs to be advanced and arenas are not changed. After game was saved and exited, on game resume the first clip is performed with empty arenas, so arena time is not updated and nobody moves, nor anything happens, but arenas are here correctly updated. LambdaHack:Check if the given actor is dominated and update his calm. LambdaHack9Trigger periodic items for all actors on the given level. LambdaHack"Manage trajectory of a projectile.;Colliding with a wall or actor doesn't take time, because the projectile does not move (the move is blocked). Not advancing time forces dead projectiles to be destroyed ASAP. Otherwise, with some timings, it can stay on the game map dead, blocking path of human-controlled actors and alarming the hapless human. LambdaHackplayer-supplied server options LambdaHack9function that initializes a client and runs its main loopyNone "#$V]^k] *+,-.*+,-. <z{|}~zzzzzz{z{z{z{zzzzzzz}}zz{z{z{z{z{zzzzzz{z{z{z{z{z{zz}zzzz{z{z}zzzzzz{zzz{z{}}}}}z{}z}}z}z{z{}zz}}}z{zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz z z z z zzzzzzzzzzzzzzzzzz z!z"z#z$z%z&z'z(z)z*z+z,z-z.z/z0z1z2z3z4z5z6z7z8z9z:z;z<z=z>z?z@zAzBzCzDzEzFzGzHzIzJzKzLzMzNzOzPzQzRzSzTUzTVzWzXzYzZz[z\]z^z_z`zazbzczdzezfzgzhzizjzkzlzmznzozpzqzrzsztzuzvzwzxzyzzz{z|z}z~zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz{z{z{z{z{z{z{z{z{z{zz}}}}}}}}}}      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@A B B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                                              !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmmnopqrstuvwxyzz{|}~xyZx4      !"#$%&'()*+,-./0123456789::;<=>?@ABCDEFGHIJKL   M M N O P Q R S T U V W X Y Z [ \  ] ^ _ `  a b c d e f g h i j k l m n n o p q r s t u v w    x y z { | } ~    "      . / 0 1    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"""""""""""""""""""""""""""""""""""""""""#################################################################### # # # # ################### #!#"###$$%$&$'$($)$*$+$,$-$.$/$0$1$2$3$4$5$6$7$8$9$:$;$<$=$>$?$@$A$B$C$D$E$F%G%G%H%I%J%K%L%M%N%O%P%Q%R%S%T&U&V&W&X&Y&Z&Z&[&\&]&^&_&`&a&b&c&c&d&e&f&g&h&i&j&k&l&m&n&o&p&q&r&r&s&t&u&v&w&x&y&z&{&|&}&~&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&'''''''''''''''''''''''''''''''''''''''''''''((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))) ) ) ) ) )))))))))))))))))*** *!*"*#*$*%*&*'*(*)***+*,*-*.*/*/*0*1*2*3*4*3*5*6*7*8*8*9*:*;*<*=*>*?*@*A*B*C*D*E*F*G*H*I*J*K*L*M*N*O*P*Q*R*S*T*U*V*W*X*Y*Z*[*\*]*^*_*`*a*b*c*d*e*f*g*h*i*j*k*l*m*n*o+p+q+r+r+s+t+u+u+v+w+w+x+y+z+{+|+}+~++++++++++,,,,,,,,,,,,,,,,,,,,----------------------------------------....................../////////////////////////000000000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 !2 "2 #2 $2 %2 &2 '2 (3 )3 *3 +3 ,3 -3 .3 /3 03 13 23 33 43 53 63 73 83 93 :3 ;3 <3 =3 >3 ?3 @3 A3 B3 C3 D3 E3 F3 G3 H3 I3 J3 K3 L3 M3 N3 O3 P3 Q3 R3 S3 T3 U3 V3 W3 X3 Y3 Z3 [3 \3 ]3 ^3 _3 `3 a3 b3 c3 d3 e3 f4 g4 h4 i4 j4 k4 l4 m4 n4 o5 p5 p5 q5 r5 r5 s5 t5 u5 v5 w5 x5 y5 z5 {5 |5 }5 ~5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 848 8 8 8 8 8 8 8 8 8 8 8 8 8 8 88 8 8 8 8 8'8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 !8 "8 #8 $8 %8 &8 '8 (8 )8 *8 +8 ,8 -8 .8 /8 08 18 28 38 48 58 68 78 88 98 :8 ;8 <8 =8 >8 ?8 @8 A8 B8 C8 D8 E9 F9 F9 G9 H9 I9 J9 K9 L9 M9 N9 O9 P9 Q9 R9 S9 T9 U9 V9 W9 X9 Y9 Z9 [9 \9 ]: ^: ^: _: `: a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y; z; z; {; |; }; ~; ; < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = != "= #= $= %= &= '= (= )= *= +> ,> -> .> /> 0> 1> 2> 3> 4>u> 5> 6> 7> 8> 9> :> ;> <> => >? ?? @? A? B? C? D? E? F? G? H? I? J? K? L? M? N? O? P? Q? R? S? T? U? V? W? X? Y? Z? [? \? ]? ^? _? `? a? b? c? d? e? f? g? h? i? j? k@ l@ l@ m@ n@ o@ p@ o@ q@ r@ s@ t@ t@ u@ v@ w@ x@ y@ z@ {@ |@ }@ ~@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ A A A A A A A A A B B B B B B B B C C C C C C C C C C C C C C C C C C C C C C C C C C C C D D D D D D D D D D D D D D D D D D D D E E F F G G G G G G G G G G G G G G G G G G G G G G G G G H H I I I I I I I J J J J J J J J J J J bJ J eJ J K K K K K K K K K K K K K K K K K K L L L L L L L !L "L #L $L %L &L 'L (L )M *M +M +M ,M -M .M /M 0M 1M 2M 3M 4M 5M 6M 7M 8M 9M :M ;M <M =N >N >N ?N @N AN BN CN DN EN FN GN HN IO JO JO KO LO MO NO OO PO QO RP SP TP UP VP VP WP XP YP ZP [P \P ]P ^P _P `P aPCP bP cP dP eQ fQ gQ hQ hQ iQ jQ kQ kQ lQ mQ nQ nQ oQ pQ pQ qQ rQ sQ tQ tQ uQ vQ wQ xQ xQ yQ zQ {Q |Q |Q }Q ~Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q R R R R R R R R R R R R R R R R S S S S S S S S S S T T T T T T T T T T T T T T TT T T T T T T T T T T T T T T T T T T T T T T T T T T U U U U U V V V V V V V W W W W W W W W W W W W W W X X X X X X X Y Y Y Y Y Y Y Y Y Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z !Z "Z #Z $Z %Z &Z '[ ([ )[ *[ +[ ,[ -[ .[ /[ 0[ 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8\ 9\ :\ ;\ <\ =\ >\ ?\ @\ A\ B\ C\ D\ E\ F\ G\ H\ I\ J\ K\ L\ M\ N\ O\ P\ Q\ R\ S\ T\ U\ V\ W\ X\ Y\ Z\ [\ \\ ]\ ^\ _\ `\ a\ b\ c\ d\ e] f] g] h] i] j] k] l] m] n] o] p] q] r] s] t] u] v] w] x] y^ z^ {^ |^ }^ ~^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ _ _ _ _ _ ` ` a a a a a a a a b b b b b c c c c c c c c c c c c c c c c c c c c c c c c c c c c d d d d d d d d d d d d d d zd d d d d d d d d d ~d d d d d d d d d d d e e f f f f ffffffff fff f f f f f ff fggggggggghhhhhhhh h!h"h#h$h%h&h'h(i)i)i*i+i,i-i.i/i0i1i2i3i4i5i6i7i8j9j:j;j j<j<j=j>j?j@jAjBjCjDjEjFjGjHjIjJjKjLjMjNjOj kPkQkRkSkTkUkVlWlXlYlZl[l\l]l^l_l`lalblcldlelflglhliljlklllmlnlompmqmrmsmtmumvmwnxnynzn{n|n}n~nooooo ooooooooooooooooooooooooooooooooooooooooooooooooopppppppppppppppppppppppppqqqqqrrrrrrrrrrrrrrzz{z{zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz~ z z z z zzzzz{z{z{z{z{z{z{z{z{z{    !*",#,$,%,&,',(,),*-+-,---.-/-0-1-2-3-4-5-6-7-8R9w:w;w<w=w>w?w@wA[BC(LambdaHack-0.8.1.1-B7gvMzZweCFaQcfmLNwOPGame.LambdaHack.Common.PreludeGame.LambdaHack.Common.HSFileGame.LambdaHack.Common.Point!Game.LambdaHack.Common.PointArrayGame.LambdaHack.Common.Misc Game.LambdaHack.Common.FrequencyGame.LambdaHack.Common.DiceGame.LambdaHack.Common.ColorGame.LambdaHack.Common.FlavourGame.LambdaHack.Common.Ability!Game.LambdaHack.Client.UI.OverlayGame.LambdaHack.Client.UI.Frame$Game.LambdaHack.Client.ClientOptionsGame.LambdaHack.Client.Bfs"Game.LambdaHack.Client.AI.StrategyGame.LambdaHack.Common.Random!Game.LambdaHack.Common.ItemAspect"Game.LambdaHack.Common.ContentData#Game.LambdaHack.Client.UI.Animation!Game.LambdaHack.Common.RingBufferGame.LambdaHack.Common.ThreadGame.LambdaHack.Common.TimeGame.LambdaHack.Client.UI.MsgGame.LambdaHack.Common.VectorGame.LambdaHack.Client.UI.Key)Game.LambdaHack.Client.UI.Frontend.Common+Game.LambdaHack.Client.UI.Frontend.Teletype&Game.LambdaHack.Client.UI.Frontend.Sdl"Game.LambdaHack.Client.UI.Frontend Game.LambdaHack.Content.ItemKind Game.LambdaHack.Content.RuleKind Game.LambdaHack.Content.TileKind!Game.LambdaHack.Content.PlaceKind Game.LambdaHack.Content.CaveKind Game.LambdaHack.Content.ModeKindGame.LambdaHack.Common.TileGame.LambdaHack.Common.KindGame.LambdaHack.Common.Item!Game.LambdaHack.Common.ReqFailureGame.LambdaHack.Common.ActorGame.LambdaHack.Common.LevelGame.LambdaHack.Common.Faction!Game.LambdaHack.Common.Perception Game.LambdaHack.Common.HighScoreGame.LambdaHack.Common.State!Game.LambdaHack.Client.UI.ActorUI+Game.LambdaHack.Client.UI.EffectDescription)Game.LambdaHack.Client.UI.ItemDescriptionGame.LambdaHack.Client.Request"Game.LambdaHack.Client.Preferences!Game.LambdaHack.Common.ActorState%Game.LambdaHack.Common.MonadStateRead"Game.LambdaHack.Client.UI.ItemSlot#Game.LambdaHack.Client.UI.Slideshow&Game.LambdaHack.Atomic.MonadStateWrite"Game.LambdaHack.Client.UI.HumanCmd#Game.LambdaHack.Client.UI.UIOptions)Game.LambdaHack.Client.UI.Content.KeyKind%Game.LambdaHack.Client.UI.KeyBindings#Game.LambdaHack.Client.UI.SessionUI Game.LambdaHack.Atomic.CmdAtomic$Game.LambdaHack.Atomic.PosAtomicRead(Game.LambdaHack.Atomic.HandleAtomicWriteGame.LambdaHack.Client.State"Game.LambdaHack.Client.MonadClientGame.LambdaHack.Client.CommonMGame.LambdaHack.Client.BfsM$Game.LambdaHack.Client.AI.ConditionM%Game.LambdaHack.Client.AI.PickTargetM$Game.LambdaHack.Client.AI.PickActorM(Game.LambdaHack.Client.AI.HandleAbilityMGame.LambdaHack.Client.AIGame.LambdaHack.Client.Response$Game.LambdaHack.Client.HandleAtomicM&Game.LambdaHack.Server.DungeonGen.Area)Game.LambdaHack.Server.DungeonGen.AreaRnd'Game.LambdaHack.Server.DungeonGen.Place&Game.LambdaHack.Server.DungeonGen.Cave!Game.LambdaHack.Server.DungeonGen!Game.LambdaHack.Server.FovDigitalGame.LambdaHack.Server.FovGame.LambdaHack.Server.ItemRevGame.LambdaHack.Common.Save'Game.LambdaHack.Client.UI.MonadClientUIGame.LambdaHack.Client.UI.RunMGame.LambdaHack.Client.UI.MsgMGame.LambdaHack.Client.UI.DrawM Game.LambdaHack.Client.UI.FrameM$Game.LambdaHack.Client.UI.SlideshowM'Game.LambdaHack.Client.UI.HandleHelperM$Game.LambdaHack.Client.UI.InventoryM+Game.LambdaHack.Client.UI.HandleHumanLocalM(Game.LambdaHack.Client.UI.DisplayAtomicM,Game.LambdaHack.Client.UI.HandleHumanGlobalM&Game.LambdaHack.Client.UI.HandleHumanMGame.LambdaHack.Client.UI&Game.LambdaHack.Client.HandleResponseMGame.LambdaHack.Client.LoopM$Game.LambdaHack.Server.ServerOptionsGame.LambdaHack.Server.State"Game.LambdaHack.Server.Commandline"Game.LambdaHack.Server.MonadServerGame.LambdaHack.Server.ItemM$Game.LambdaHack.Server.HandleAtomicMGame.LambdaHack.Server.DebugM Game.LambdaHack.Server.ProtocolM&Game.LambdaHack.Server.BroadcastAtomicGame.LambdaHack.Server.CommonMGame.LambdaHack.Server.StartM Game.LambdaHack.Server.PeriodicM$Game.LambdaHack.Server.HandleEffectM%Game.LambdaHack.Server.HandleRequestMGame.LambdaHack.Server.EndMGame.LambdaHack.Server.LoopMGame.LambdaHack.Common.File)Game.LambdaHack.Client.UI.Frontend.Chosen posUpdAtomicGame.LambdaHack.AtomicPaths_LambdaHackGame.LambdaHack.ClientGame.LambdaHack.ServerbaseGHC.Base++ghc-primGHC.PrimseqGHC.Listfilterzip System.IOprint Data.Tuplefstsnd otherwiseassertmap$GHC.Num fromInteger-GHC.Real fromRationalGHC.EnumenumFrom enumFromThen enumFromToenumFromThenTo GHC.Classes==>=negatefail>>=>>fmapreturn Control.Arrowfirst fromIntegral realToFrac toInteger toRationalmemptymappendmconcat<*>pure*>BoundedEnumEq GHC.FloatFloating FractionalIntegralMonadFunctorNumOrdGHC.ReadReadReal RealFloatRealFracGHC.ShowShow Applicative Data.FoldableFoldableData.Traversable Traversable SemigroupMonoid GHC.TypesBoolCharDoubleFloatInt integer-gmpGHC.Integer.TypeIntegerMaybeOrderingRationalIOWord Data.EitherEitherFalseNothingJustTrueLeftRightLTEQGTStringShowSshowGHC.Errerror,assert-failure-0.1.2.2-hJppAqpAfx9eKr46xh170Control.Exception.Assert.SugarallBswith showFailureblame Data.ListisSubsequenceOf mapAccumR mapAccumLsequencemapM sequenceAtraverse&&&***secondreadIOreadLnreadFileinteract getContentsgetLinegetCharputStrLnputStrputCharGHC.IO.ExceptionioErrorGHC.IOFilePath userErrorIOErrorfindnotElem minimumBy maximumByallanyorand concatMapconcat sequence_mapM_productsumminimummaximumelemfoldl1foldr1foldl'foldlfoldrfoldMap Data.OldListunwordswordsunlineslinesunfoldrsortOnsortBysort permutations subsequencestailsinitsgroupBygroupdeleteFirstsByunzip7unzip6unzip5unzip4zipWith7zipWith6zipWith5zipWith4zip7zip6zip5zip4genericReplicate genericIndexgenericSplitAt genericDrop genericTake genericLengthinsertByinsert partition transpose intercalate intersperse intersectBy intersectunionByunion\\deleteBydeletenubBynub isInfixOf isSuffixOf isPrefixOf findIndices findIndex elemIndices elemIndex stripPrefix dropWhileEnd Text.Readreadreadseitherlex readParenreadList readsPrecText.ParserCombinators.ReadPReadSatanhacoshasinhtanhcoshsinhatanacosasintancossinlogBase**sqrtlogexppiatan2isIEEEisNegativeZeroisDenormalized isInfiniteisNaN scaleFloat significandexponent encodeFloat decodeFloat floatRange floatDigits floatRadix Data.Functor<$>lcmgcd^^^oddevendivModquotRemmoddivremquotrecip/floorceilingroundtruncateproperFractionmaxBoundminBoundfromEnumtoEnumpredsucc showParen showStringshowCharshowsshowList showsPrecunzip3unzipzipWith3zipWithzip3!!lookupreversebreakspansplitAtdroptake dropWhile takeWhilecycle replicaterepeatiterate'iteratescanr1scanrscanl'scanl1scanlfoldl1'initlasttailunconshead Data.Maybemaybeuncurrycurrysubtractsignumabs*+asTypeOfuntil$!flip.constid=<<<$<* undefinederrorWithoutStackTrace/=compare<=&&||not<>maxmindirectory-1.3.1.5System.Directory doesFileExist renameFile(minimorph-0.1.6.1-8b2ckv2fOi9JZnpoPCVM2FNLP.Minimorph.Util<+> text-1.2.3.0Data.Text.InternalTexttshowdivUp<$$> partitionMlengthnullPointpxpyYXmaxLevelDimExponent maxLevelDim chessDist euclidDistSqadjacentinsideblablaXY balancedWordfromTo originPoint $fEnumPoint $fBinaryPoint $fShowPoint $fEqPoint $fOrdPoint$fGenericPointArrayaxsizeaysizeavector UnboxRepClassUnboxReptoUnboxRepUnsafe fromUnboxRep toUnboxReppindexpunindex!accessI// unsafeUpdateA unsafeWriteAunsafeWriteManyA replicateA replicateMA generateA generateMA unfoldrNAsizeAfoldrAfoldrA'foldlA'ifoldlA'ifoldrAifoldrA'foldMA'ifoldMA'mapAimapAimapMA_ unsafeSetAsafeSetA minIndexA minLastIndexA minIndexesA maxIndexA maxLastIndexAforceA fromListAtoListA$fUnboxRepClassWord8$fUnboxRepClassBool $fBinaryArray $fShowArray $fEqArrayTacticTExploreTFollowTFollowNoItemsTMeleeAndRangedTMeleeAdjacentTBlockTRoamTPatrol GroupNameItemDialogModeMStoreMOrgansMOwnedMStatsMLoreSLoreSItemSOrganSTrunkSTmpSBlastSEmbedCStoreCGroundCOrganCEqpCInvCSha ContainerCFloorCEmbedCActorCTrunkActorIdLevelId FactionId toGroupNamedescribeTactic makePhrase makeSentencesquashedWWandWnormalLevelBound appDataDirxMxDminusMminusM1oneMtenthM$fNFDataPolarity$fNFDataPerson $fNFDataPart$fHashableEnumMap$fAdjustableEnumMap$fLookupEnumMap$fIndexableEnumMap$fTraversableWithKeyEnumMap$fFoldableWithKeyEnumMap$fKeyedEnumMap$fZipWithKeyEnumMap $fZipEnumMap$fBinaryHashMap$fBinaryNominalDiffTime$fBinaryEnumSet$fBinaryEnumMap $fEnumLevelId$fNFDataCStore$fBinaryCStore$fBinaryContainer $fNFDataSLore $fBinarySLore$fBinaryItemDialogMode$fNFDataItemDialogMode$fNFDataGroupName$fShowGroupName$fIsStringGroupName$fNFDataTactic$fBinaryTactic $fShowTactic$fShowFactionId $fEqFactionId$fOrdFactionId$fEnumFactionId$fHashableFactionId$fBinaryFactionId $fShowLevelId $fEqLevelId $fOrdLevelId$fHashableLevelId$fBinaryLevelId $fShowActorId $fEqActorId $fOrdActorId $fEnumActorId$fBinaryActorId $fShowCStore $fReadCStore $fEqCStore $fOrdCStore $fEnumCStore$fBoundedCStore$fGenericCStore$fShowContainer $fEqContainer$fOrdContainer$fGenericContainer $fShowSLore $fReadSLore $fEqSLore $fOrdSLore $fEnumSLore$fBoundedSLore$fGenericSLore$fShowItemDialogMode$fReadItemDialogMode$fEqItemDialogMode$fOrdItemDialogMode$fGenericItemDialogMode$fReadGroupName $fEqGroupName$fOrdGroupName$fHashableGroupName$fBinaryGroupName$fGenericGroupName $fEqTactic $fOrdTactic $fEnumTactic$fBoundedTactic$fGenericTactic encodeData encodeEOFstrictDecodeEOF tryCreateDir tryWriteFile Frequency runFrequency nameFrequency uniformFreqtoFreq scaleFreq renameFreqsetFreqnullFreqminFreqmaxFreqmostFreq$fAlternativeFrequency$fMonadPlusFrequency$fApplicativeFrequency$fFunctorFrequency$fMonadFrequency$fShowFrequency $fEqFrequency$fOrdFrequency$fFoldableFrequency$fTraversableFrequency$fGenericFrequencyDiceXYAbsDepthDicecastDiceddLzzL intToDice minmaxDicemaxDiceminDicemeanDice reduceDice maxDiceXY minDiceXY meanDiceXY $fNumDice $fNFDataDice $fBinaryDice $fShowDice$fNFDataDiceXY$fBinaryDiceXY$fEqDice $fOrdDice $fGenericDice$fShowAbsDepth $fEqAbsDepth $fOrdAbsDepth$fHashableAbsDepth$fBinaryAbsDepth $fShowDiceXY$fGenericDiceXY AttrCharW32 attrCharW32AttrCharacAttracCharAttrfgbg Highlight HighlightNone HighlightRed HighlightBlueHighlightYellow HighlightGreyHighlightWhiteHighlightMagentaColorBlackRedGreenBrownBlueMagentaCyanWhiteBrBlackBrRedBrGreenBrYellowBrBlue BrMagentaBrCyanBrWhitedefFGisBrightdarkCol brightColstdCol colorToRGBdefAttr attrCharToW32attrCharFromW32 fgFromW32 bgFromW32 charFromW32 attrFromW32attrEnumFromW32 spaceAttrW32 retAttrW32attrChar2ToW32attrChar1ToW32 $fNFDataColor$fHashableColor $fBinaryColor $fEnumAttr$fUnboxRepClassAttrCharW32 $fShowColor $fEqColor $fOrdColor $fEnumColor$fBoundedColor$fGenericColor$fShowHighlight $fEqHighlight$fOrdHighlight$fEnumHighlight$fBoundedHighlight$fGenericHighlight $fShowAttr$fEqAttr $fOrdAttr$fShowAttrChar $fEqAttrChar $fOrdAttrChar$fShowAttrCharW32$fEqAttrCharW32$fOrdAttrCharW32$fEnumAttrCharW32$fBinaryAttrCharW32Flavour FancyNamezipPlainzipFancy zipLiquidflavourToColor flavourToNamecolorToPlainNamecolorToFancyNamecolorToLiquidNamecolorToTeamName$fNFDataFancyName$fNFDataFlavour$fBinaryFlavour$fHashableFlavour $fEnumFlavour$fShowFancyName $fEqFancyName$fOrdFancyName$fEnumFancyName$fBoundedFancyName$fGenericFancyName $fShowFlavour $fEqFlavour $fOrdFlavour$fGenericFlavourSkillsAbilityAbMoveAbMelee AbDisplaceAbAlterAbWait AbMoveItem AbProjectAbApply zeroSkills unitSkills addSkills scaleSkills tacticSkills blockOnly meleeAdjacentmeleeAndRanged ignoreItems$fHashableAbility$fBinaryAbility$fNFDataAbility $fShowAbility $fEqAbility $fOrdAbility$fGenericAbility $fEnumAbility$fBoundedAbility ColorMode ColorFullColorBW IntOverlayOverlayAttrLine emptyAttrLinetextToALfgToAL stringToAL<+:> splitAttrLineindentSplitAttrLine linesAttrsplitAttrPhrase glueLines updateLines $fEqColorModeFrames SingleFrame singleFrame FrameForall unFrameForallFrameST writeLineblankSingleFrametruncateAttrLine overlayFrameoverlayFrameWithLines$fEqSingleFrame$fShowSingleFrame ClientOptionssgtkFontFamily sdlFontFile sdlTtfSizeAdd sdlFonSizeAdd sfontSize scolorIsBold slogPrioritysmaxFpssdisableAutoYessnoAnim snewGameCli sbenchmarkstitlesfontDirssavePrefixClisfrontendTeletype sfrontendNull sfrontendLazy sdbgMsgClisstopAfterSecondssstopAfterFramessprintEachScreendefClientOptions$fBinaryClientOptions$fShowClientOptions$fEqClientOptions$fGenericClientOptionsAndPathNoPathpathListpathGoalpathLen MoveLegal MoveBlocked MoveToOpen MoveToClosed MoveToUnknown BfsDistance minKnownBfsapartBfsmaxBfsDistanceabortedKnownBfsabortedUnknownBfsfillBfs findPathBfs accessBfs$fUnboxRepClassBfsDistance$fBinaryAndPath$fShowBfsDistance$fEqBfsDistance$fOrdBfsDistance$fEnumBfsDistance$fBitsBfsDistance $fEqMoveLegal $fShowAndPath$fGenericAndPathStrategy nullStrategy liftFrequency.|reject.=>only bestVariantrenameStrategyreturN mapStrategyM$fAlternativeStrategy$fMonadPlusStrategy$fApplicativeStrategy$fFunctorStrategy$fMonadStrategy$fShowStrategy$fFoldableStrategy$fTraversableStrategyChanceRndrandomRrandomoneOf frequencyrollFreqchance chanceDice castDiceXYfoldrMfoldlM'EqpSlotEqpSlotMiscBonusEqpSlotAddHurtMeleeEqpSlotAddArmorMeleeEqpSlotAddArmorRangedEqpSlotAddMaxHPEqpSlotAddSpeedEqpSlotAddSightEqpSlotLightSource EqpSlotWeaponEqpSlotMiscAbility EqpSlotAbMoveEqpSlotAbMeleeEqpSlotAbDisplaceEqpSlotAbAlterEqpSlotAbProjectEqpSlotAbApplyEqpSlotAddMaxCalmEqpSlotAddSmellEqpSlotAddNoctoEqpSlotAddAggression EqpSlotAbWaitEqpSlotAbMoveItemItemSeedKindMeankmConstkmMean AspectRecordaTimeout aHurtMelee aArmorMelee aArmorRangedaMaxHPaMaxCalmaSpeedaSightaSmellaShineaNocto aAggressionaSkillsAspectTimeout AddHurtMelee AddArmorMeleeAddArmorRangedAddMaxHP AddMaxCalmAddSpeedAddSightAddSmellAddShineAddNocto AddAggression AddAbilityemptyAspectRecord castAspect aspectsRandom addMeanAspectceilingMeanDicesumAspectRecordaspectRecordToList seedToAspect prEqpSlot$fNFDataAspect$fBinaryAspectRecord$fHashableAspectRecord$fNFDataEqpSlot $fShowAspect $fEqAspect $fOrdAspect$fGenericAspect$fShowAspectRecord$fEqAspectRecord$fOrdAspectRecord$fGenericAspectRecord$fShowKindMean $fEqKindMean $fOrdKindMean$fGenericKindMean$fShowItemSeed $fEqItemSeed $fOrdItemSeed$fEnumItemSeed$fHashableItemSeed$fBinaryItemSeed $fShowEqpSlot $fEqEqpSlot $fOrdEqpSlot $fEnumEqpSlot$fBoundedEqpSlot$fGenericEqpSlotRarityFreqs ContentData ContentIdcontentIdIndexvalidateRarityemptyContentDatamakeContentDataokind omemberGroupoisSingletonGroup ouniqGroupopick ofoldrWithKeyofoldlWithKey' ofoldlGroup' omapVector oimapVectorolength$fHashableContentId$fNFDataContentId$fUnboxRepClassContentId$fNFDataContentData$fShowContentId $fEqContentId$fOrdContentId$fEnumContentId$fBinaryContentId$fGenericContentId$fGenericContentData Animation renderAnimblankcSymmapPosToOffset mzipSingleton mzipPairs pushAndDelayblinkColorActor twirlSplashblockHit blockMiss subtleHit deathBodyshortDeathBodyactorXteleport swapPlacesfadeout $fEqAnimation$fShowAnimation RingBufferemptyconstoList$fBinaryRingBuffer$fShowRingBuffer$fGenericRingBuffer forkChildwaitForChildrenSpeedDeltaTimetimeZero _timeTick timeEpsilontimeCliptimeTurn turnsInSecond timeSecondabsoluteTimeAddabsoluteTimeSubtractabsoluteTimeNegatetimeFit timeFitUp timeShifttimeDeltaToFrom timeDeltaAddtimeDeltaSubtracttimeDeltaReversetimeDeltaScaletimeDeltaPercent timeDeltaDivtimeDeltaToDigitsInMstoSpeed fromSpeedminSpeed minimalSpeed speedZero speedWalk speedLimp speedThrustmodifyDamageBySpeed speedScalespeedAdd speedNegate ticksPerMeterspeedFromWeightrangeFromSpeedrangeFromSpeedAndLinger $fShowSpeed $fShowTime$fEqTime $fOrdTime $fEnumTime $fBoundedTime $fBinaryTime $fShowDelta $fEqDelta $fOrdDelta $fEnumDelta$fBoundedDelta $fBinaryDelta$fFunctorDelta $fEqSpeed $fOrdSpeed $fBinarySpeedHistory newReportReportRepMsgNMsg UAttrLine uToAttrLine attrLineToUtoMsgtoPrompt emptyReport nullReport snocReport consReport renderReportrenderRepetition findInReport emptyHistoryscrapRepetition addToReport archiveReportrenderTimeReport lengthHistory renderHistory $fBinaryMsg$fBinaryRepMsgN$fBinaryHistory $fShowMsg$fEqMsg $fGenericMsg $fShowRepMsgN$fGenericRepMsgN $fShowReport$fBinaryReport $fShowHistory$fGenericHistory RadianAngleVectorvxvy maxVectorDimisUnit isDiagonalnegchessDistVectoreuclidDistSqVectormoves movesCardinal movesDiagonal _moveTexts longMoveTexts compassTextvicinityvicinityUnsafevicinityCardinalvicinityCardinalUnsafesquareUnsafeSetshift shiftBoundedtrajectoryToPathtrajectoryToPathBounded vectorToFrompathToTrajectorycomputeTrajectoryrotate normalizenormalizeVectortowards$fNFDataVector $fEnumVector$fBinaryVector $fShowVector $fReadVector $fEqVector $fOrdVector$fGenericVectorKMP kmpKeyMod kmpPointerKMmodifierkeyModifier NoModifierShiftControlAltKeyEscReturnSpaceTabBackTab BackSpacePgUpPgDnUpDownEndBeginInsertDelete PrintScreenHomeKPFunLeftButtonPressMiddleButtonPressRightButtonPressLeftButtonReleaseMiddleButtonReleaseRightButtonRelease WheelNorth WheelSouthUnknownDeadKeyshowKeyshowKMescKMspaceKM safeSpaceKMreturnKMpgupKMpgdnKM wheelNorthKM wheelSouthKMupKMdownKMleftKMrightKMhomeKMendKM backspaceKMleftButtonReleaseKMrightButtonReleaseKM dirKeypadKeydirKeypadShiftChardirKeypadShiftKey dirLaptopKeydirLaptopShiftKey dirViChardirViKey dirViShiftKeydirMoveNoModifierdirRunNoModifier dirRunControl dirRunShift dirAllKey handleDir moveBindingmkKMmkCharmkKP keyTranslatekeyTranslateWeb $fNFDataKey $fBinaryKey$fNFDataModifier$fBinaryModifier$fShowKM $fNFDataKM $fBinaryKM$fOrdKey$fEqKey $fGenericKey$fShowModifier $fOrdModifier $fEqModifier$fGenericModifier$fOrdKM$fEqKM $fGenericKM RawFrontendfdisplay fshutdownfshowNowfchanKey fprintScreen startupBoundcreateRawFrontend resetChanKeysaveKMPmodifierTranslate frontendNamestartupFrontendSessionswindow srenderersfontsatlasstexturespreviousFramesforcedShutdownscontinueSdlLoop sframeQueue sframeDrawn FontAtlas startupFunshutdown forceShutdowndisplay drawFrame printScreen modTranslate colorToRGBA FrontSetup ChanFrontendFrontReq FrontFrame FrontDelayFrontKey FrontPressed FrontDiscardFrontAdd FrontAutoYes FrontShutdownFrontPrintScreen frontFrame frontKeyKeys frontKeyFramechanFrontendIOgetKey fchanFrontend defaultMaxFps microInSecframeTimeoutThread lazyStartup nullStartupseqFrame ItemSpeedupFeatureELabelFragileLobableDurableToThrowHideAs Equipable MeleeablePreciousBlastUniquePeriodic MinorEffectsThrowMod throwVelocity throwLinger TimerDice DetectKind DetectAll DetectActor DetectItem DetectExit DetectHidden DetectEmbedEffectBurnExplodeRefillHP RefillCalmDominateImpressSummonAscendEscapeParalyze InsertMoveTeleport CreateItemDropItemPolyItemIdentifyDetect SendFlying PushActor PullActorDropBestWeapon ActivateInv ApplyPerfumeOneOfOnSmash Recharging Composite TemporaryItemKindisymbolinameifreqiflavouricountirarityiverbHitiweightidamageiaspectsieffectsifeatureidescikitemptyItemSpeedup getKindMean speedupItem meanAspectboostItemKindList boostItemKindforApplyEffect majorEffectonlyMinorEffects isEffEscape isEffAscendisEffEscapeOrAscendfilterRechargingstripRecharging stripOnSmashstrengthOnSmash getDropOrgans getToThrow getHideAs getEqpSlotisMeleeisTmpConditionisBlastisHumanTrinket goesIntoEqp goesIntoInv goesIntoShaitemTrajectory totalRangedamageUsefulness tmpNoLongertmpLess toVelocitytoLinger timerNone isTimerNone foldTimer toOrganBad toOrganGoodtoOrganNoTimervalidateSingle validateDupsvalidateDamage validateAllhardwiredItemGroupsmakeData$fBinaryDetectKind$fNFDataDetectKind$fBinaryTimerDice$fNFDataTimerDice$fShowTimerDice$fBinaryThrowMod$fNFDataThrowMod$fBinaryEffect$fNFDataFeature$fNFDataEffect$fNFDataItemKind$fShowDetectKind$fEqDetectKind$fGenericDetectKind $fEqTimerDice$fGenericTimerDice$fShowThrowMod $fEqThrowMod $fOrdThrowMod$fGenericThrowMod $fShowFeature $fEqFeature $fOrdFeature$fGenericFeature$fShowItemKind$fGenericItemKind $fShowEffect $fEqEffect$fGenericEffect$fShowItemSpeedup$fEqItemSpeedup$fGenericItemSpeedupRuleKindrsymbolrnamerfreqrtitlerfontDir rexeVersion rcfgUIName rcfgUIDefault rmainMenuArt rintroScreenrfirstDeathEndsrwriteSaveClipsrleadLevelClips rscoresFilernearby$fNFDataRuleKind$fShowRuleKind$fGenericRuleKind TileSpeedup isClearTabisLitTab isWalkableTab isDoorTabisChangableTab isSuspectTab isHideAsTabconsideredByAITabisOftenItemTabisOftenActorTab isNoItemTab isNoActorTab isEasyOpenTabalterMinSkillTabalterMinWalkTabEmbedOpenToCloseToChangeToBuildAsRevealAs ObscureAsWalkableClearDark OftenItem OftenActorNoItemNoActorConsideredByAITrailSpiceTileKindtsymboltnametfreqtcolortcolor2taltertfeatureemptyTileSpeedupemptyTabhardwiredTileGroupsactionFeatures isUknownSpace unknownId isSuspectKindisOpenableKindisClosableKindtalterForStairs floorSymbol$fHashableFeature$fBinaryFeature$fNFDataTileKind $fNFDataTab$fNFDataTileSpeedup$fShowTileKind$fGenericTileKind $fGenericTab$fGenericTileSpeedupFenceFWallFFloorFGroundFNoneCover CAlternateCStretchCReflect CVerbatimCMirror PlaceKindpsymbolpnamepfreqpraritypcoverpfenceptopLeft poverride $fNFDataCover $fNFDataFence$fNFDataPlaceKind $fShowCover $fEqCover$fGenericCover $fShowFence $fEqFence$fGenericFence$fShowPlaceKind$fGenericPlaceKindCaveKindcsymbolcnamecfreqcxsizecysizecgrid cminPlaceSize cmaxPlaceSize cdarkChance cnightChance cauxConnectscmaxVoid cminStairDist cextraStairs cdoorChance copenChancechidden cactorCoeff cactorFreqcitemNum citemFreq cplaceFreq cpassablecdefTile cdarkCorTile clitCorTile cfillerTilecouterFenceTileclegendDarkTileclegendLitTile cescapeGroup cstairFreqcdesc$fNFDataCaveKind$fShowCaveKind$fGenericCaveKind AutoLeader autoDungeon autoLevel LeaderMode LeaderNullLeaderAILeaderUIPlayerfnamefgroups fskillsOther fcanEscape fneverEmpty fhiCondPoly fhasGenderftactic fleaderModefhasUIHiIndeterminantHiConstHiLootHiBlitz HiSurvivalHiKillHiLoss HiPolynomial HiSummand HiCondPolyOutcomeKilledDefeatedCampingConquerRestartRoster rosterList rosterEnemy rosterAllyCavesModeKindmsymbolmnamemfreqmrostermcavesmdescnameOfHorrorFactvalidateSingleRostervalidateSinglePlayerhardwiredModeGroups$fNFDataOutcome$fBinaryOutcome$fNFDataHiIndeterminant$fBinaryHiIndeterminant$fNFDataAutoLeader$fBinaryAutoLeader$fNFDataLeaderMode$fBinaryLeaderMode$fNFDataPlayer$fBinaryPlayer$fNFDataRoster$fNFDataModeKind $fShowOutcome $fEqOutcome $fOrdOutcome $fEnumOutcome$fBoundedOutcome$fGenericOutcome$fShowHiIndeterminant$fEqHiIndeterminant$fOrdHiIndeterminant$fGenericHiIndeterminant$fShowAutoLeader$fEqAutoLeader$fOrdAutoLeader$fGenericAutoLeader$fShowLeaderMode$fEqLeaderMode$fOrdLeaderMode$fGenericLeaderMode $fShowPlayer $fEqPlayer$fGenericPlayer $fShowRoster$fGenericRoster$fShowModeKind$fGenericModeKind createTabcreateTabWithKey accessTab speedupTilealterMinSkillKindalterMinWalkKindisClearisLit isWalkableisDoor isChangable isSuspectisHideAsconsideredByAI isExplorable isOftenItem isOftenActorisNoItem isNoActor isEasyOpen alterMinSkill alterMinWalkkindHasFeature hasFeatureopenTocloseTo embeddedItemsrevealAs obscureAshideAsbuildAsisEasyOpenKind isOpenable isClosableCOpscocavecoitemcomodecoplacecorulecotile coItemSpeedup coTileSpeedup emptyCOps getStdRuleset$fEqCOps $fShowCOps $fGenericCOpsItemDictItemBag ItemQuant ItemTimerDiscoveryBenefitBenefitbenInEqp benPickupbenApplybenMeleebenFling ItemIxMap DiscoveryKind ItemFullKitItemFullitemBase itemKindIditemKind itemDisco itemSuspect ItemDisco ItemDiscoMean ItemDiscoFull itemAspect ItemKindIxDiscoveryAspect ItemIdentityIdentityObviousIdentityCoveredItemjkindjlidjfidjflavourItemId itemToFull6aspectRecordFull strongestSlot hasChargestrongestMelee unknownAspectunknownMeleeBonus tmpMeleeBonus$fBinaryItemIdentity$fHashableItemIdentity $fBinaryItem$fHashableItem$fBinaryBenefit $fShowItemId $fEqItemId $fOrdItemId $fEnumItemId$fBinaryItemId$fShowItemKindIx$fEqItemKindIx$fOrdItemKindIx$fEnumItemKindIx$fIxItemKindIx$fHashableItemKindIx$fBinaryItemKindIx$fShowItemIdentity$fEqItemIdentity$fGenericItemIdentity $fShowItem$fEqItem $fGenericItem$fShowItemDisco $fEqItemDisco$fOrdItemDisco$fShowItemFull $fShowBenefit$fGenericBenefit ReqFailure MoveNothing MeleeSelf MeleeDistantDisplaceDistantDisplaceAccessDisplaceProjectiles DisplaceDyingDisplaceBracedDisplaceImmobileDisplaceSupportedAlterUnskilled AlterUnwalked AlterDistantAlterBlockActorAlterBlockItem AlterNothing EqpOverfull EqpStackFullApplyUnskilled ApplyReadApplyOutOfReach ApplyChargingApplyNoEffects ItemNothing ItemNotCalmNotCalmPreciousProjectUnskilledProjectAimOnselfProjectBlockTerrainProjectBlockActorProjectLobableProjectOutOfReachTriggerNothingNoChangeDunLeaderimpossibleReqFailureshowReqFailurepermittedPreciouspermittedProjectpermittedProjectAIpermittedApply$fBinaryReqFailure$fShowReqFailure$fEqReqFailure$fGenericReqFailure ActorDict ActorAspectResDeltaresCurrentTurnresPreviousTurnActorbtrunkbhpbhpDeltabcalm bcalmDeltabposboldposblidbfid btrajectoryborganbeqpbinvbweaponbwaitbproj deltaSerious deltaMild actorCanMeleemomentarySpeed gearSpeedbraced actorTemplatewaitedLastTurn actorDyinghpTooLow calmEnoughhpEnough checkAdjacent eqpOverfulleqpFreeNmonsterGenChance smellTimeout$fBinaryResDelta $fBinaryActor$fShowResDelta $fEqResDelta$fGenericResDelta $fShowActor $fEqActor$fGenericActorLevellkindldepthlfloorlembedlactorltilelxsizelysizelsmelllstairlescapelseenlexplltimelnightSmellMapTileMapActorMap ItemFloorDungeonascendInBranchwhereToassertSparseItemsassertSparseActors updateFloor updateEmbedupdateActorMap updateTile updateSmellat findPointfindPos findPosTry findPosTry2 $fBinaryLevel $fShowLevel $fEqLevel ChallengecdiffcwolfcfishTGoal TEnemyPosTEmbedTItemTSmellTUnknownTKnownTAnyTargetTEnemyTPointTVectorStatus stOutcomestDepth stNewGameDipl DiplomacyNeutralAllianceWarFactiongnamegcolorgplayerginitialgdiplgquit_gleadergshagvictims gvictimsD FactionDictgleadertgtKindDescription isHorrorFactnoRunWithMultiisAIFactautoDungeonLevelautomatePlayerisFoeisFrienddifficultyBounddifficultyDefaultdifficultyCoeffdifficultyInversedefaultChallenge$fBinaryDiplomacy$fBinaryStatus$fBinaryFaction $fBinaryTGoal$fBinaryTarget$fBinaryChallenge$fShowDiplomacy $fEqDiplomacy$fOrdDiplomacy$fEnumDiplomacy$fGenericDiplomacy $fShowStatus $fEqStatus $fOrdStatus$fGenericStatus $fShowFaction $fEqFaction$fGenericFaction $fShowTGoal $fEqTGoal $fOrdTGoal$fGenericTGoal $fShowTarget $fEqTarget $fOrdTarget$fGenericTarget$fShowChallenge $fEqChallenge$fOrdChallenge$fGenericChallengePerFidPerLid Perceptionpsightpsmell PerSmelledpsmelled PerVisiblepvisible totalVisible totalSmelledemptyPernullPeraddPerdiffPer$fBinaryPerception$fShowPerVisible$fEqPerVisible$fBinaryPerVisible$fShowPerSmelled$fEqPerSmelled$fBinaryPerSmelled$fShowPerception$fEqPerception$fGenericPerception ScoreDict ScoreTable ScoreRecord insertPosregister showScoregetTable getRecord showTableshowNearbyScores highSlideshow$fBinaryScoreRecord$fShowScoreTable$fShowScoreRecord$fEqScoreRecord$fOrdScoreRecord$fGenericScoreRecord$fEqScoreTable$fBinaryScoreTableStatesdungeon stotalDepthsactorDsitemD sitemIxMap sfactionDstimescopssgoldshigh sgameModeId sdiscoKind sdiscoAspect sactorAspect unknownLevelunknownTileMapdefStateGlobal emptyStatelocalFromGlobal updateDungeon updateDepth updateActorD updateItemDupdateItemIxMapupdateFactionD updateTimeupdateCOpsAndCachedData updateGoldupdateDiscoKindupdateDiscoAspectupdateActorAspect getItemBodyaspectRecordFromItemaspectRecordFromIidaspectRecordFromActoractorAspectInDungeon $fBinaryState $fShowState $fEqState ActorDictUIActorUIbsymbolbnamebpronounbcolor keySelected partActor partPronoun ppContainerppCStore ppCStoreIn ppCStoreWownWppContainerWownW verbCStore tryFindActor tryFindHeroK$fBinaryActorUI $fShowActorUI $fEqActorUI$fGenericActorUI DetailLevel DetailLow DetailMedium DetailHigh DetailAlleffectToSuffixdetectToObject detectToVerbslotToSentence slotToName slotToDescslotToDecorator statSlots tmodToSuffkindAspectToSuffix featureToSufffeatureToSentence affixBonus wrapInParenswrapInChevrons affixDice$fEqDetailLevel$fOrdDetailLevel$fEnumDetailLevel$fBoundedDetailLevel show64With2 partItemN textAllAEpartItem partItemShortpartItemShortest partItemHigh partItemWsR partItemWspartItemWsRangedpartItemShortAWpartItemMediumAWpartItemShortWownWviewItemitemDesc RequestTimedReqMoveReqMelee ReqDisplaceReqAlterReqWait ReqWait10 ReqMoveItems ReqProjectReqApplyRequestAnyAbilityReqUIReqUINop ReqUITimedReqUIGameRestartReqUIGameDropAndExitReqUIGameSaveAndExit ReqUIGameSave ReqUITactic ReqUIAutomate RequestUIReqAIReqAINop ReqAITimed RequestAI $fShowReqUI $fShowReqAI$fShowRequestTimed$fShowRequestAnyAbilityeffectToBenefitaverageTurnValue avgItemDelay avgItemLifedurabilityMult organBenefit recBenefitfakeItemaspectToBenefitrecordToBenefittotalUsefulnessfidActorNotProjAssocs actorAssocsfidActorRegularAssocsfidActorRegularIdsfoeRegularAssocsfoeRegularListfriendRegularAssocsfriendRegularList bagAssocs bagAssocsK posToAidsLvl posToAids posToAssocsnearbyFreePointscalculateTotal itemPricemergeItemQuantfindIid combinedInv combinedEqp combinedOrgan combinedItemscombinedFromLore getActorBodygetActorAspect canTraversegetCarriedAssocsAndTrunkgetCarriedIidCStoregetContainerBag getFloorBag getEmbedBaggetBodyStoreBagmapActorItems_getActorAssocsgetActorAssocsKmemActor getLocalTimeregenCalmDeltaactorInAmbientcanDeAmbientList actorSkills dispEnemy itemToFull fullAssocs kitAssocs getItemKindId getIidKindId getItemKind getIidKindgetItemKindIdServergetIidKindIdServergetItemKindServergetIidKindServer storeFromCaidFromClidFromCposFromCisStair anyFoeAdjactorAdjacentAssocsarmorHurtBonusinMeleeMonadStateRead getsStategetStategetLevelnUI getGameModeisNoConfirmsGame getEntryArena pickWeaponM ItemSlotsSingleItemSlotsSlotChar slotPrefixslotCharallSlotsintSlots slotLabel assignSlot partyItemSet sortSlotMapmergeItemSlots$fEnumSlotChar$fBinarySlotChar $fOrdSlotChar$fShowSlotChar $fEqSlotChar$fShowItemSlots$fBinaryItemSlots Slideshow slideshowOKXKYXemptySlideshowunsnoc toSlideshowmoreMsgendMsgmenuToSlideshowwrapOKXkeysOKX splitOverlaysplitOKX$fShowSlideshow $fEqSlideshow AtomicFailMonadStateWrite modifyState atomicFailputState updateLevel updateActor updateFaction moveActorMapinsertBagContainerinsertItemContainerinsertItemFloorinsertItemEmbedinsertItemActorinsertItemOrgan insertItemEqp insertItemInv insertItemShadeleteBagContainerdeleteItemContainerdeleteItemFloordeleteItemEmbeddeleteItemActordeleteItemOrgan deleteItemEqp deleteItemInv deleteItemSha rmFromBagaddAis itemsMatchaddItemToActorAspectresetActorAspect$fExceptionAtomicFail$fShowAtomicFail TriggerTilettverbttobject ttfeature TriggerItemtiverbtiobject tisymbolsHumanCmdMacroByArea ByAimModeComposeIfLocalComposeUnlessErrorCompose2ndLocal LoopOnNothingExecuteIfClearWaitWait10MoveDirRunDir RunOnceAheadMoveOnceToXhairRunOnceToXhairContinueToXhairMoveItemProjectApplyAlterDirAlterWithPointerHelpHintItemMenuMainMenu DashboardGameDifficultyIncrGameWolfToggleGameFishToggleGameScenarioIncr GameRestartGameExitGameSaveAutomate SortSlots ChooseItemChooseItemMenuChooseItemProjectChooseItemApply PickLeaderPickLeaderWithPointer MemberCycle MemberBack SelectActor SelectNoneSelectWithPointerRepeatRecord MarkVision MarkSmell MarkSuspect SettingsMenuChallengesMenuCancelAcceptTgtClear ItemClear MoveXhairAimTgtAimFloorAimEnemyAimItem AimAscendEpsIncr XhairUnknown XhairItem XhairStairXhairPointerFloorXhairPointerEnemyAimPointerFloorAimPointerEnemy explorationaiming CmdTripleCmdArea CaMessage CaMapLeader CaMapPartyCaMap CaLevelNumber CaArenaName CaPercentSeen CaXhairDesc CaSelected CaCalmGauge CaHPGauge CaTargetDesc CmdCategory CmdMainMenu CmdDashboard CmdItemMenuCmdMoveCmdItemCmdAimCmdMetaCmdMouse CmdInternal CmdNoHelpCmdDebug CmdMinimalcategoryDescriptionareaDescription$fBinaryCmdCategory$fNFDataCmdCategory$fBinaryCmdArea$fNFDataCmdArea$fBinaryTriggerItem$fNFDataTriggerItem$fReadTriggerItem$fBinaryTriggerTile$fNFDataTriggerTile$fReadTriggerTile$fBinaryHumanCmd$fNFDataHumanCmd$fShowCmdCategory$fReadCmdCategory$fEqCmdCategory$fGenericCmdCategory $fShowCmdArea $fReadCmdArea $fEqCmdArea $fOrdCmdArea$fGenericCmdArea$fShowTriggerItem$fEqTriggerItem$fOrdTriggerItem$fGenericTriggerItem$fShowTriggerTile$fEqTriggerTile$fOrdTriggerTile$fGenericTriggerTile$fShowHumanCmd$fReadHumanCmd $fEqHumanCmd $fOrdHumanCmd$fGenericHumanCmd UIOptions uCommands uHeroNamesuViuLaptopuGtkFontFamily uSdlFontFileuSdlTtfSizeAdduSdlFonSizeAdd uFontSize uColorIsBold uHistoryMaxuMaxFpsuNoAnim uRunStopMsgsuhpWarningPercentuCmdline parseConfig mkUIOptionsapplyUIOptions$fBinaryUIOptions$fNFDataUIOptions$fShowUIOptions$fGenericUIOptionsKeyKind evalKeyDefaddCmdCategory replaceDesc replaceCmdmoveItemTriple repeatTriplemouseLMBmouseMMBmouseRMBgoToCmd runToAllCmdautoexploreCmdautoexplore25Cmd aimFlingCmd projectICmdprojectIprojectAflingTsapplyIKapplyIgrabCmd grabItemsdropCmd dropItemsdescIsdescTsdefaultHeroSelectBindingbcmdMapbcmdListbrevMap stdBindingkeyHelpokxsNHintMode HintAbsent HintShown HintWiped LastRecord currentKeys previousKeys freeSpace RunParams runLeader runMembers runInitial runStopMsg runWaitingAimMode aimLevelId SessionUIsxhairsactorUIsslots slastItemMoveschanFsbinding sUIOptionssaimMode sxhairMousedsitemSel sselectedsrunningshistoryspointer slastRecord slastPlay slastLost swaitTimes smarkVision smarkSmell smenuIxMapsdisplayNeeded shintMode sreportNullsstartsgstartsallTimesnframes sallNframesemptySessionUItoggleMarkVisiontoggleMarkSmell getActorUI$fBinaryRunParams$fBinarySessionUI $fShowAimMode $fEqAimMode$fBinaryAimMode$fShowRunParams $fEqHintMode$fEnumHintMode$fBoundedHintModeSfxMsg SfxUnexpected SfxExpected SfxLoudUpd SfxLoudStrike SfxLoudSummon SfxFizzlesSfxNothingHappensSfxVoidDetectionSfxUnimpressedSfxSummonLackCalmSfxLevelNoMoreSfxLevelPushedSfxBracedImmuneSfxEscapeImpossibleSfxStasisProtectsSfxTransImpossibleSfxIdentifyNothingSfxPurposeNothingSfxPurposeTooFewSfxPurposeUniqueSfxPurposeNotCommon SfxColdFishSfxTimerExtendedSfxCollideActor SfxAtomic SfxStrike SfxRecoilSfxSteal SfxRelease SfxProject SfxReceiveSfxApplySfxCheck SfxTriggerSfxShun SfxEffect SfxMsgFid SfxSortSlotsSfxCollideTile UpdAtomicUpdCreateActorUpdDestroyActor UpdCreateItemUpdDestroyItem UpdSpotActor UpdLoseActor UpdSpotItem UpdLoseItemUpdSpotItemBagUpdLoseItemBag UpdMoveActor UpdWaitActorUpdDisplaceActor UpdMoveItem UpdRefillHP UpdRefillCalm UpdTrajectoryUpdQuitFactionUpdLeadFactionUpdDiplFactionUpdTacticFactionUpdAutoFaction UpdRecordKill UpdAlterTileUpdAlterExplorable UpdAlterGold UpdSearchTile UpdHideTile UpdSpotTile UpdLoseTile UpdAlterSmell UpdSpotSmell UpdLoseSmell UpdTimeItem UpdAgeGame UpdUnAgeGame UpdDiscoverUpdCoverUpdDiscoverKind UpdCoverKindUpdDiscoverSeed UpdCoverSeedUpdDiscoverServerUpdCoverServer UpdPerception UpdRestartUpdRestartServer UpdResumeUpdResumeServer UpdKillExit UpdWriteSave CmdAtomic undoUpdAtomic undoSfxAtomic undoCmdAtomic$fBinaryUpdAtomic$fBinarySfxMsg$fBinarySfxAtomic$fBinaryCmdAtomic$fShowUpdAtomic $fEqUpdAtomic$fGenericUpdAtomic $fShowSfxMsg $fEqSfxMsg$fGenericSfxMsg$fShowSfxAtomic $fEqSfxAtomic$fGenericSfxAtomic$fShowCmdAtomic $fEqCmdAtomic$fGenericCmdAtomic PosAtomicPosSightPosFidAndSightPosSmellPosFid PosFidAndSerPosSerPosAllPosNone posSfxAtomic posProjBody singleAid doubleAidsingleContainerbreakUpdAtomic seenAtomicCli seenAtomicSer$fShowPosAtomic $fEqPosAtomichandleUpdAtomicupdCreateActorupdDestroyActor updCreateItemupdDestroyItemupdSpotItemBagupdLoseItemBag updMoveActor updWaitActorupdDisplaceActor updMoveItem updRefillHP updRefillCalm updTrajectoryupdQuitFactionupdLeadFactionupdDiplFactionupdTacticFactionupdAutoFaction updRecordKill updAlterTileupdAlterExplorable updSearchTile updSpotTile updLoseTile updAlterSmell updSpotSmell updLoseSmell updTimeItem updAgeGame updUnAgeGameageLevel updDiscoverupdCoverupdDiscoverKind discoverKind updCoverKindupdDiscoverSeed discoverSeed updCoverSeedupdDiscoverServerupdCoverServer updRestartupdRestartServerupdResumeServer TgtAndPathtapTgttapPath BfsAndPath BfsInvalidbfsArrbfsPathAlterLid StateClientsepsstargetDsfleeD sexploredsbfsDsundo sdiscoBenefitsfpersaltersrandom_sleader_ssidesquitscurChalsnxtChal snxtScenario smarkSuspect scondInMelee svictoriessoptionsemptyStateClientcycleMarkSuspect updateTarget getTarget updateLeaderssidesleader$fBinaryTgtAndPath$fBinaryStateClient$fShowBfsAndPath$fShowTgtAndPath$fGenericTgtAndPath$fShowStateClient MonadClient getsClient modifyClientliftIO getClient putClientdebugPossiblyPrint rndToActionrndToActionForget getPerFid aidTgtToPosmakeLinemaxActorSkillsClientcurrentSkillsClientpickWeaponClient updateSalter createSalterFleeViaStairsOrEscape ViaStairs ViaStairsUp ViaStairsDown ViaEscape ViaNothing ViaAnythinginvalidateBfsAidinvalidateBfsLidinvalidateBfsAll createBfsupdatePathFromBfsgetCacheBfsAndPath getCacheBfs getCachePath createPathcondBFS furthestKnownclosestUnknown closestSmell embedBenefitclosestTriggerscondEnoughGearMunexploredDepth closestItems closestFoes$fShowFleeViaStairsOrEscape$fEqFleeViaStairsOrEscapecondAimEnemyPresentMcondAimEnemyRememberedMcondTgtNonmovingMcondAnyFoeAdjMcondAdjTriggerableMmeleeThreatDistListcondBlocksFriendsMcondFloorWeaponMcondNoEqpWeaponMcondCanProjectMcondProjectListMbenAvailableItemshinderscondDesirableFloorItemMbenGroundItems desirableItem condSupport condSoloMcondShineWouldBetrayMfleeList refreshTarget computeTargetpickActorToMovesetTargetFromTacticsApplyItemGroup pickActionactionStrategy waitBlockNowpickup equipItemstoShare yieldUnneeded unEquipItemsgroupByEqpSlot bestByEqpSlotharmful meleeBlockermeleeAnytrigger projectItem applyItemflee displaceFoedisplaceBlockerdisplaceTowardschase moveTowards moveOrRunAid$fEqApplyItemGroupqueryAIpickActorAndActionResponseRespUpdAtomicNoState RespUpdAtomic RespQueryAI RespSfxAtomic RespQueryUI$fShowResponseMonadClientSetup saveClient restartClientcmdAtomicSemCliwipeBfsIfItemAffectsSkillstileChangeAffectsBfs createActor destroyActoraddItemToDiscoBenefit perception coverKind coverSeedkillExit SpecialArea SpecialFixed SpecialMergedAreatoAreafromArea trivialArea isTrivialAreamkFixedgridshrinkexpandsumAreas $fBinaryArea $fShowArea$fEqArea$fShowSpecialAreaCorridorHVHorizVertxyInArea mkVoidRoommkRoom connectGrid connectGrid' sortPointrandomConnection mkCorridor connectPlaces borderPlace$fEqHV TileMapEMPlaceqkindqareaqseenqlegendqFWallqFFloorqFGround placeCheck interiorArea buildPlace isChancePosolegend ooverride buildFence buildFenceRnd tilePlace $fBinaryPlace $fShowPlaceCavedkinddsecretdmapdplacesdnight anchorDownbootFixedCenters buildCave pickOpening digCorridors $fShowCave FreshDungeon freshDungeonfreshTotalDepthconvertTileMaps buildTileMap buildLevelplaceDownStairslevelFromCaveKind dungeonGen EdgeIntervalEdge ConvexHullLineBumpBbxbyProgressDistancescansteeperaddHulldlinedsteeper _debugSteeper _debugLine $fShowBump $fShowLineMatrix FovLitLidFovLitfovLit FovClearLidFovClearfovClear FovLucidLidFovLucidfovLucidFovShinefovShine PerCacheFid PerCacheLidPerceptionCacheptotalperActorPerActorCacheBeforeLucid creachablecnoctocsmell PerReachable preachable PerValidFidFovValid FovInvalidperceptionFromPTotalperActorFromLevelboundSightByCalmcacheBeforeLucidFromActortotalFromPerActorlucidFromLevelshineFromLevelfloorLightSourceslucidFromItemsperFidInDungeon litFromLevel litInDungeonclearFromLevelclearInDungeonlucidInDungeonperLidFromFactionperceptionCacheFromLevelfullscan$fShowFovValid $fEqFovValid$fShowPerReachable$fEqPerReachable$fShowCacheBeforeLucid$fEqCacheBeforeLucid$fShowPerceptionCache$fEqPerceptionCache$fShowFovShine $fEqFovShine$fShowFovLucid $fEqFovLucid$fShowFovClear $fEqFovClear $fShowFovLit $fEqFovLit FlavourMap ItemSeedDictDiscoveryKindRev UniqueSetItemRev ItemKnown buildItemnewItememptyDiscoveryKindRev serverDiscosemptyFlavourMapdungeonFlavourMap$fShowDiscoveryKindRev$fBinaryDiscoveryKindRev$fShowFlavourMap$fBinaryFlavourMapChanSave saveToChanloopSave wrapInSaves restoreGamevExevLib showVersion2 delayPrint saveNameCli saveNameSer MonadClientUI getsSession modifySession clientPrintUI mapStartY getSession putSession connFrontend displayFrame displayFramesconnFrontendFrontKeysetFrontAutoYesfrontendShutdown chanFrontend anyKeyPresseddiscardPressedKey addPressedKey addPressedEsc revCmdMap getReportUI getLeaderUI getArenaUI viewedLevelUIleaderTgtToPos xhairToPos clearXhair clearAimModescoreToSlideshowdefaultHistory tellAllClipPStellGameClipPSelapsedSessionTimeGTresetSessionStartresetGameStartpartActorLeaderpartActorLeaderFunpartPronounLeader partAidLeader tryRestoreleaderSkillsClientUI continueRuncontinueRunDir enterableDir tryTurning checkAndRunmsgAddDuplicatemsgAddpromptAddDuplicate promptAdd1 promptAdd0promptMainKeys recordHistory targetDesctargetDescLeadertargetDescXhairdrawFrameTerraindrawFrameContent drawFramePathdrawFrameActordrawFrameExtradrawFrameStatus drawBaseFramedrawArenaStatusdrawLeaderStatusdrawLeaderDamage drawSelected drawOverlay pushFrame promptGetKey stopPlayBack renderFramesanimate fadeOutOrInoverlayToSlideshowreportToSlideshowreportToSlideshowKeepdisplaySpaceEsc displayMoredisplayMoreKeep displayYesNo getConfirmsdisplayChoiceScreen FailOrCmdMError FailError showFailError mergeMErrorfailWithfailSerfailMsg weaveJustppSLore loreFromModeloreFromContainer sortSlots memberCycle memberBackpartyAfterLeader pickLeaderpickLeaderWithPointer itemOverlay statsOverlay pickNumber lookAtTile lookAtActors lookAtItems$fShowFailError SuitabilitySuitsEverythingSuitsSomethingppItemDialogModeppItemDialogModeFrom getGroupItem getStoreItemgetFull$fShowItemDialogState$fEqItemDialogState macroHumansortSlotsHumanchooseItemHumanchooseItemDialogModechooseItemProjectHumanpermittedProjectClient projectCheck xhairLegalEps posFromXhairpsuitReqtriggerSymbolschooseItemApplyHumanpermittedApplyClientpickLeaderHumanpickLeaderWithPointerHumanmemberCycleHumanmemberBackHumanselectActorHuman selectAidselectNoneHumanselectWithPointerHuman repeatHuman recordHuman historyHumanmarkVisionHumanmarkSmellHumanmarkSuspectHumanprintScreenHuman cancelHuman acceptHuman endAiming endAimingMsg tgtClearHumanitemClearHumandoLookmoveXhairHuman aimTgtHuman aimFloorHuman aimEnemyHuman aimItemHumanaimAscendHuman epsIncrHuman flashAimingxhairUnknownHumanxhairItemHumanxhairStairHumanxhairPointerFloorHumanxhairPointerFloorxhairPointerEnemyHumanxhairPointerEnemyaimPointerFloorHumanaimPointerEnemyHumandisplayRespUpdAtomicUIupdateItemSlotmarkDisplayNeeded lookAtMove actorVerbMU aidVerbMUaidVerbDuplicateMU itemVerbMU itemAidVerbMU createActorUIdestroyActorUIspotItem moveActordisplaceActorUI moveItemUI quitFactionUIdiscoverdisplayRespSfxAtomicUIppSfxMsgstrike byAreaHumanareaToRectanglesbyAimModeHumancomposeIfLocalHumancomposeUnlessErrorHumancompose2ndLocalHumanloopOnNothingHumanexecuteIfClearHuman waitHuman waitHuman10 moveRunHumanmeleeAid displaceAidmoveSearchAlterrunOnceAheadHumanmoveOnceToXhairHuman goToXhairmultiActorGoTorunOnceToXhairHumancontinueToXhairHuman moveItemHumanselectItemsToMove moveItems projectHuman applyHuman alterDirHuman alterTilealterTileAtPos verifyAlters verifyEscape guessAlteralterWithPointerHuman helpHuman hintHumandashboardHuman itemMenuHumanchooseItemMenuHumanartWithVersion generateMenu mainMenuHumansettingsMenuHumanchallengesMenuHumangameScenarioIncrgameDifficultyIncrgameWolfTogglegameFishTogglegameRestartHuman nxtGameMode gameExitHuman gameSaveHuman tacticHuman automateHuman cmdHumanSemnoRemoteHumanCmd cmdAction addNoError fmapTimedToUIqueryUI humanCommandMonadClientAtomic execUpdAtomic execPutStateMonadClientWriteRequest sendRequestAI sendRequestUI clientHasUIhandleResponseMonadClientReadResponsereceiveResponseinitAIinitUIloopCliRNGsdungeonRandomGeneratorstartingRandomGenerator ServerOptionssknowMap sknowEvents sknowItemssniff sallClearsboostRandomItem sgameMode sautomateAllskeepAutomated sdungeonRngsmainRng snewGameSer scurChalSer sdumpInitRngsssavePrefixSer sdbgMsgSersclientOptionsdefServerOptions$fBinaryServerOptions $fBinaryRNGs $fShowRNGs$fShowServerOptions ActorTime StateServer sactorTime sactorStasis sdiscoKindRev suniqueSet sitemSeedDsitemRevsflavour sacounter sicounter snumSpawned sclientStatessperFid sperValidFid sperCacheFid sfovLucidLid sfovClearLid sfovLitLidsarenas svalidArenassrngs sbreakLoop sbreakASAP swriteSave soptionsNxtemptyStateServerupdateActorTimeageActor$fBinaryStateServer$fShowStateServerserverOptionsPIserverOptionsPMonadServerAtomicexecUpdAtomicSerexecUpdAtomicFidexecUpdAtomicFidCatch execSfxAtomic execSendPer MonadServer getsServer modifyServerchanSaveServer getServer putServerdebugPossiblyPrintAndExit serverPrint saveServerdumpRngs restoreScore registerScore getSetGenonlyRegisterItem registerItemcreateLevelItem embedItemrollItemrollAndRegisterItemplaceItemsInDungeonembedItemsInDungeonmapActorCStore_cmdAtomicSemSerinvalidateArenas updateSclear updateSlitinvalidateLucidLidinvalidateLucidAid actorHasShineitemAffectsShineRadiusitemAffectsPerRadius addPerActoraddPerActorAnydeletePerActordeletePerActorAnyinvalidatePerActorreconsiderPerActorinvalidatePerLidDebugAidlabelaidfactionlidbHPbtimetime debugShow debugResponse debugPretty debugPlaindebugRequestAIdebugRequestUIdebugAid$fShowDebugAidMonadServerReadRequestgetsDict modifyDict ChanServer responseS requestAIS requestUISConnServerDict CliSerQueue writeQueue readQueueAI readQueueUInewQueueputDict sendUpdatesendUpdateChecksendUpdNoStatesendSfx sendQueryAI sendQueryUIkillAllClientschildrenServer updateConnhandleCmdAtomicServerhandleAndBroadcast loudUpdAtomic loudSfxAtomicsendPer atomicForgetatomicRemember execFailure revealItems moveStoresgeneralMoveItemcontainerMoveItemquitF deduceQuits keepArenaFact deduceKilledanyActorsAlive electLeadersupplantLeader updatePerrecomputeCachePer projectFail projectBlaaddActorFromGroup registerActor addProjectile addActorIiddiscoverIfMinorEffectspickWeaponServercurrentSkillsServer getCacheLucid getCacheTotalinitPer reinitGame mapFromFuns resetFactions gameResetpopulateDungeon findEntryPoss applyDebug spawnMonster addAnyActor rollSpawnPos advanceTimeoverheadActorTimeswapTime udpateCalmleadLevelSwitch UseResultUseDudUseIdUseUpapplyMeleeDamagerefillHPmeleeEffectAndDestroyeffectAndDestroyimperishableKititemEffectEmbeddeditemEffectDisco effectSem effectBurn effectExplodeeffectRefillHPcutCalmeffectRefillCalmeffectDominatehighestImpressiondominateFidSfx dominateFid effectImpress effectSummon effectAscend findStairExit switchLevels1 switchLevels2 effectEscapeeffectParalyzeeffectInsertMoveeffectTeleporteffectCreateItemeffectDropItem allGroupItemsdropCStoreItem pickDroppableeffectPolyItemeffectIdentify identifyIid effectDetect effectDetectXeffectSendFlyingsendFlyingVectoreffectDropBestWeaponeffectActivateInveffectTransformContainereffectApplyPerfume effectOneOfeffectRechargingeffectTemporaryeffectComposite $fEqUseResult$fOrdUseResulthandleRequestAIhandleRequestUIsetBWaithandleRequestTimedmanagePerRequesthandleRequestTimedCases switchLeader affectSmellreqMovereqMelee reqDisplacereqAlter reqAlterFailreqWait reqMoveItems reqMoveItemcomputeRndTimeout reqProjectreqApplyreqGameRestartreqGameDropAndExitreqGameSaveAndExit reqGameSave reqTactic reqAutomate endOrLoopgameExitdieSer dropAllItems writeSaveAllloopSer factionArena arenasForLoop handleFidUpdloopUpdendClipmanageCalmAndDominationapplyPeriodicLevelhandleTrajectories hTrajectories setTrajectory handleActorshActors restartGame Control.Monadguardjoin<>mfilter<$!>unless replicateM_ replicateMfoldM_foldM zipWithM_zipWithM mapAndUnzipMforever<=<>=>filterMforMmsumforM_ Data.MonoidFirstgetFirstLastgetLastData.Semigroup.InternalDualgetDualEndoappEndoAllgetAllAnygetAnySumgetSumProduct getProductgetAltvoidmapMaybe catMaybes listToMaybe maybeToList fromMaybefromJust isNothingisJustapliftM5liftM4liftM3liftM2liftMwhen MonadPlusmzeromplus _olorToRGB fancyName baseColor truncateLinesmsgLinemsgHistisAllypointsnegTimedatestatus challenge gplayerName ourVictims theirVictims _sdungeon _stotalDepth_sactorD_sitemD _sitemIxMap _sfactionD_stime_scops_sgold_shigh _sgameModeId _sdiscoKind _sdiscoAspect _sactorAspectrollFlavourMapversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileNamegetItem