9b853324ad
Drop first version of random walk
Yohann D'ANELLO
2021-01-08 16:16:42 +01:00
c216a6089eAdd a break so that generated rooms arre only placed once
Charles Peyrat
2021-01-08 16:51:04 +01:00
a390f4f5e9Fix is_connex tests
Charles Peyrat
2021-01-08 16:21:16 +01:00
bde33e9232Added a second scroll object closes#60
eichhornchen
2021-01-08 16:14:40 +01:00
0aa4eb9c0bRefactoring in tests to allow for easy connexity verification
Charles Peyrat
2021-01-08 16:11:17 +01:00
4a80dc36adMerge branch 'save_floors' into 'master'ynerant2021-01-08 16:05:10 +01:00
7a4936e6a5
Test monocles
Yohann D'ANELLO
2021-01-08 15:58:54 +01:00
785ac403e3Forbid walker from ever reaching the outer most edge of the map
Charles Peyrat
2021-01-08 15:56:30 +01:00
f240cafa83Fixing syntax in tests
Charles Peyrat
2021-01-08 15:55:26 +01:00
a497d08f31
Implement the monocle of truth, closes#62
Yohann D'ANELLO
2021-01-08 15:48:12 +01:00
5424c7cd98Nicer default parameters
Charles Peyrat
2021-01-08 15:20:32 +01:00
dab84738d9Remove the starting room door only if it really shouldn't be here; also account for the new randomized placement in removing lone door tile
Charles Peyrat
2021-01-08 15:18:13 +01:00
1270640619
Change hint whenever the T key is pressed or not
Yohann D'ANELLO
2021-01-08 15:07:35 +01:00
8d7e264381Fix a bug where the generator could crash by trying to place the starting room out of bounds; starting room position is now random
Charles Peyrat
2021-01-08 15:06:38 +01:00
28a6532a21
Add a hint to tell the user how to talk to friendly entities
Yohann D'ANELLO
2021-01-08 14:59:44 +01:00
fab1bee8d8Force loop entrance to get coverage
Charles Peyrat
2021-01-08 14:52:59 +01:00
156e4a7e3a
Add a hint to tell the user how to use ladders
Yohann D'ANELLO
2021-01-08 14:51:56 +01:00
f48377e055
Save floors and visibility, fixes#61
Yohann D'ANELLO
2021-01-08 14:23:57 +01:00
073e3d3740Merge branch 'description' into 'master'ynerant2021-01-08 12:10:29 +01:00
120ec82d09
Helmet needs only one character in squirrel mode, add a trailing space
Yohann D'ANELLO
2021-01-08 12:07:13 +01:00
571e9db3e8
Fix french translations
Yohann D'ANELLO
2021-01-08 12:06:28 +01:00
5736c2300bAdded a scroll object that deals damage based on the player intelligence. Related to #60
eichhornchen
2021-01-08 11:54:39 +01:00
2b3a8279b8Merge branch 'fix-settings' into 'master'ynerant2021-01-08 11:30:02 +01:00
75e93611c3
Capture all mouse events and take into account mouse attributes, fixes#58
Yohann D'ANELLO
2021-01-08 11:21:40 +01:00
ea58d5b426Merge branch 'doc' into 'master'
eichhornchen
2021-01-08 11:15:42 +01:00
b42f1277b1
Exit the game on KeyboardInterrupt (don't log this error)
Yohann D'ANELLO
2021-01-08 11:10:10 +01:00
196e3708d2Merge branch 'master' into 'doc'
eichhornchen
2021-01-08 11:10:09 +01:00
ac8c7a0a4c
Only read required keys in settings file
Yohann D'ANELLO
2021-01-08 11:07:38 +01:00
6673b67ffeRepaired spawn of trumpets.
eichhornchen
2021-01-08 10:58:40 +01:00
c06f903a16Fix a typo that made corridors unable to be built
Charles Peyrat
2021-01-08 07:41:00 +01:00
c6947fab44Integrate the new map generation into the game ! Closes#5
Charles Peyrat
2021-01-08 07:39:52 +01:00
641f5c7872Make generation more sparse by asking for extra space around rooms; also add out of bounds option to Map.neighbourhood
Charles Peyrat
2021-01-08 07:38:47 +01:00
605696ddddRevamp door placing algorithm so that it generates cleaner doors; also remove lone starting room door from level
Charles Peyrat
2021-01-08 07:36:31 +01:00
5ba07afc9fFix typo in parameter names
Charles Peyrat
2021-01-08 07:05:02 +01:00
e21d4d230cAdd missing termination condition
Charles Peyrat
2021-01-08 07:04:24 +01:00
b0ac580677Fix place_walls, that placed floors instead ...
Charles Peyrat
2021-01-08 07:03:49 +01:00
d362bdc949Fix place_room and add missing argument
Charles Peyrat
2021-01-08 06:58:02 +01:00
9c252a2bbcCorrect out of bounds errors and add missing arguments to range call
Charles Peyrat
2021-01-08 06:54:01 +01:00
c959a9d865Update tests because Map.neighbourhood became a static method
Charles Peyrat
2021-01-08 05:42:12 +01:00
8475e5228eLarge neighbourhood shouldn't return the central cell
Charles Peyrat
2021-01-08 05:41:16 +01:00
20cbf546f9Correct formulas for random enumeration of a grid
Charles Peyrat
2021-01-08 05:21:31 +01:00
49e261557cFix typos
Charles Peyrat
2021-01-08 05:14:46 +01:00
abbad0f352Fix formulas in place_room and room_fits
Charles Peyrat
2021-01-08 05:14:32 +01:00
05ccd0e339Circular rooms should not try to generate any holes if their radius isn't large enough
Charles Peyrat
2021-01-08 04:51:20 +01:00
c6f66d95f2Fix typos
Charles Peyrat
2021-01-08 04:48:32 +01:00
6fbc757f1eImplement method place_walls
Charles Peyrat
2021-01-08 04:43:10 +01:00
ffa7641b21Made Map.neighbourhood a static method
Charles Peyrat
2021-01-08 04:36:57 +01:00
3229eb8ea7Implement place_room method
Charles Peyrat
2021-01-08 03:45:26 +01:00
42f0c195aaAdd prototype for create_random_room; change return value of attach_doors and create_circular_room so we have info on door direction; minor syntax change
Charles Peyrat
2021-01-08 03:43:20 +01:00
ddbd0299a0Implement method room_fits
Charles Peyrat
2021-01-08 03:38:37 +01:00
5cbf15bef5Return value of Generator.run should be a Map
Charles Peyrat
2021-01-08 03:37:10 +01:00
bb3422f7d8Add main generation loop
Charles Peyrat
2021-01-08 03:19:59 +01:00
fb47c15d6bMerge branch 'equipment' into 'master'ynerant2021-01-08 02:19:29 +01:00