00:00:42 but how is each star_sign used/created 00:01:00 are those also some kind of POD? 00:01:46 <|amethyst> alexjurkiewicz: it's because std::map's constructors are not constexpr 00:03:16 <|amethyst> that static const map is getting created at static initialization time, when the program starts 00:03:24 <|amethyst> which is long after compilation 00:05:16 <|amethyst> it works with ARRAYSZ because the size of static arrays is known at compile time 00:13:00 hm so maybe i should use a static array instead? 00:15:08 and yes, they are a POD. The struct is a few strings and a few lambdas 00:15:29 i tried to model this after the mutation-data.h structure 00:18:38 yeah I don't know what kind of lookup would really be best; maybe it's better to have an array, but I'd leave |amethyst to comment on that :) 00:29:29 Unstable branch on CRAWL.XTAHUA.COM updated to: 0.24-a0-489-g1c7b743a30 (34) 00:30:59 Stable (0.23) branch on CRAWL.XTAHUA.COM updated to: 0.23.1-82-g5129a83184 00:57:30 is there a function to randomly walk through an array/map? I want to pick a random element from my list which matches some condition, but a) I don't want to loop infinitely if nothing matches and b) I don't want to potentially spin way too long to find the one item that matches 00:57:49 randomly walk = iterate through list to get every element once in a random order 01:05:21 alexjurkiewicz, Copy the list, shuffle it, and walk through the shuffled list sequentially? 01:05:27 or you want something more efficient? 01:13:42 that works, I guess 01:14:03 i assumed there would be a more efficient c++ way but the list is small enough this should be fine 01:19:59 depending on whatever the elements of the list are, if they're big, you might save a lot of efficiency by just shuffling a list of the *indices* 01:20:03 and walking through that seq. 01:20:09 so like if it has 30 things, shuffle the numbers 0 through 29 01:20:31 and then if 12 is first in the shuffled list of integers, check item 12 first, etc. 01:20:45 Experimental (bcrawl) branch on underhound.eu updated to: 0.23-a0-1993-gf8c367d513 02:41:49 advil: figured out the zoom issue, seems sdl is sending spurious - and = text events even with the ctrl key down 02:42:19 i'll give that some more play-testing then merge 02:43:33 the workaround is simple enough (ignore text events if the ctrl key is held), but I'm not sure if that would prevent any genuine text events on unusual key layouts 03:25:30 Unstable branch on crawl.beRotato.org updated to: 0.24-a0-489-g1c7b743 (34) 03:30:48 Fork (bcrawl) on crawl.kelbi.org updated to: 0.23-a0-1994-g629b8f42c8 03:31:38 Fork (stoatsoup) on crawl.kelbi.org updated to: 0.21.2-1010-g09ee343497 03:39:37 aidanh: per PR #1091, how about I make ?, G, _, and $ keypresses in the dungeon overview as shortcuts to show_help(), G menu, asking players for god's initial, and ^F "shop", respectively. 03:42:32 aidanh: I tried making _ in dungeon overview shortcut to ^F "altar" earlier, it's kind of awkward because I have to actively look for the desired god in the search result 03:54:15 wjchen: I'm not so sure about making ? a shortcut for the help UI; that's usually used for showing context-sensitive help (e.g. x, X modes) 03:55:28 the others all sound good 07:12:40 -!- Tiobot is now known as Guest86465 08:02:45 wjchen: I still really like the idea of having a more "direct" way through G^, I feel like most use the G menu more than the dungeon overview travel 09:00:44 aidanh weird, do you know if there's something specific about your keyboard that is doing that? or is it general? 09:20:48 Stable (0.22) branch on underhound.eu updated to: 0.22.1-59-ge965b3aba3 09:36:18 -!- gmarks_ is now known as gmarks 09:45:56 alexjurkiewicz: if this is crawlcode there's surely something in random.h 09:46:29 advil: this is on a lenovo T530 laptop, so I'd think it'd have reasonably sane keysyms, and a USB keyboard produced the same result 11:21:27 Stable (0.23) branch on underhound.eu updated to: 0.23.1-82-g5129a83184 11:27:38 -!- gmarks changed the topic of ##crawl-dev to: 11:27:46 whoops 11:27:50 did I fuck that up 11:29:25 -!- gmarks changed the topic of ##crawl-dev to: Crawl Development | Logs: http://s-z.org/crawl-dev/ | People with +v have commit access. | Please keep general Crawl-related chat to ##crawl. | Dev wiki: http://crawl.develz.org/wiki | Long stuff to a pastebin service, please. 11:29:39 saved 11:30:01 hhhhhmmmmmm 11:30:04 that's not good 11:30:30 |amethyst: are you an operator here, we should be +t 11:31:00 !tell MarvinPA ##crawl-dev is not +t, anyone can set the topic. this should be changed 11:31:01 ebering: OK, I'll let marvinpa know. 11:31:45 there aren't a lot of ops for this channel 11:32:16 wow, no one's done that for 4 years lol 11:32:51 I think that's probably why...in fairness it's been pretty uncommon for someone to mess with the topic accidentally or maliciously 11:34:19 I guess I'm just an innovator 13:22:17 Unstable branch on crawl.akrasiac.org updated to: 0.24-a0-489-g1c7b743 (34) 13:43:29 alexjurkiewicz: you can view that as a reservoir sampling problem, where the weight is either 1 or 0 depending whether the item is "valid". or, you can filter the list to include only valid ones, and then choose one at random 13:43:30 amalloy: You have 1 message. Use !messages to read it. 13:44:59 03gmarks02 {amalloy} 07* 0.24-a0-490-g534e725: Check for known map bounds in the clua travel library (#1102) 10(10 seconds ago, 4 files, 52+ 27-) 13https://github.com/crawl/crawl/commit/534e725bec97 13:57:16 Unstable branch on crawl.kelbi.org updated to: 0.24-a0-490-g534e725bec (34) 14:29:26 Dwachs (L20 VSFi) ASSERT(!invalid_monster(&mons)) in 'mon-death.cc' at line 1839 failed. (Vaults:1) 14:38:24 apply_random_around_square should probably check each monster target it's chosen right before calling the function, because a monster may have died 15:39:13 gmarks: Yeah, I intend to do that (and make _ in dungeon overview a shortcut to G^). Allow travel in ^O is still good to have I believe, as players often use ^O to check altars/shops, but then have to press ESC and ^F to travel to desired one. 15:40:29 03advil02 07* 0.24-a0-491-g29c01f8: Fix arena logging (10060) 10(4 minutes ago, 3 files, 88+ 80-) 13https://github.com/crawl/crawl/commit/29c01f8b8473 16:00:35 Unstable branch on crawl.kelbi.org updated to: 0.24-a0-491-g29c01f8b84 (34) 16:23:40 -!- MarvinPA_ is now known as MarvinPA 16:53:16 crawl trivia question: how many ways are there to trigger a fineff via a non-interruptible delay? 17:10:32 03advil02 07* 0.24-a0-492-gdf4b510: Trigger fineffs after blurrily reading a scroll (12016) 10(13 minutes ago, 1 file, 11+ 0-) 13https://github.com/crawl/crawl/commit/df4b510d7ace 17:11:52 that fix is pretty ad hoc but I didn't come up with a more general solution 17:17:29 Unstable branch on crawl.kelbi.org updated to: 0.24-a0-492-gdf4b510d7a (34) 17:27:38 03advil02 07* 0.24-a0-493-g7e4ddcd: Fix a pronoun (12011) 10(2 minutes ago, 1 file, 1+ 1-) 13https://github.com/crawl/crawl/commit/7e4ddcd485ee 17:32:20 Unstable branch on crawl.kelbi.org updated to: 0.24-a0-493-g7e4ddcd485 (34) 17:46:41 why does all of mantis freeze for like 45 seconds every time I make a comment 17:49:44 or do anything at all 17:50:03 (that changes the database at least) 18:19:23 -!- gmarks_ is now known as gmarks 18:21:27 Unstable branch on underhound.eu updated to: 0.24-a0-493-g7e4ddcd485 (34) 20:07:41 -!- reaverbot is now known as reaverb 22:14:56 -!- amalloy is now known as amalloy_ 22:33:00 -!- amalloy_ is now known as amalloy 23:07:02 !seen twelwe 23:07:02 I last saw twelwe at Sat Mar 23 01:18:52 2019 UTC (15w 6d 1h 48m 10s ago) quitting, saying 'Quit: Page closed'.