1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00
Commit Graph

217 Commits

Author SHA1 Message Date
Zeno Rogue
d96f92c0f8 support for portal spaces 2021-02-18 16:16:34 +01:00
Zeno Rogue
a4373e5328 1 not 1234 2021-02-07 22:55:11 +01:00
Zeno Rogue
c57566f9da highlights in special modes 2021-02-07 22:55:11 +01:00
Zeno Rogue
0c0ca95897 fixed the 4xStabber and Princess achievements 2021-02-07 22:55:10 +01:00
Zeno Rogue
9c9afceb41 Princess hug animation 2020-12-26 18:09:09 +01:00
Zeno Rogue
1f5951dbee fixed a crash bug when collecting an Orb of Safety via Orb of Water 2020-12-26 17:16:51 +01:00
Zeno Rogue
0f1c8ec102 create a fake info for an unknown princess 2020-12-26 17:16:22 +01:00
Zeno Rogue
e13172f9ab fixed crashes caused by missing rev_dir 2020-12-25 06:07:30 +01:00
Zeno Rogue
b1cb66e468
Merge pull request #129 from Quuxplusone/unordered-map
Remove USE_UNORDERED_MAP because it has bit-rotted.
2020-11-05 20:03:13 +01:00
Zeno Rogue
63f895974e improved the checkmove.cpp, also works for golems now 2020-11-05 14:24:01 +01:00
Arthur O'Dwyer
d163a01b8a Remove USE_UNORDERED_MAP because it has bit-rotted.
Trying to compile with `-DUSE_UNORDERED_MAP` produces lots of compiler errors
like these, because of missing `std::hash` specializations.
Also, `#define unordered_map map` is just evil!

```
./nonisotropic.cpp:875:36: note: in instantiation of template class 'std::__1::unordered_map<hr::nilv::mvec, hr::heptagon *,
      std::__1::hash<hr::nilv::mvec>, std::__1::equal_to<hr::nilv::mvec>, std::__1::allocator<std::__1::pair<const hr::nilv::mvec, hr::heptagon
      *> > >' requested here
    unordered_map<mvec, heptagon*> at;
                                   ^

./nonisotropic.cpp:239:58: note: in instantiation of template class 'std::__1::unordered_map<std::__1::pair<hr::heptagon *, hr::heptagon *>,
      hr::heptagon *, std::__1::hash<std::__1::pair<hr::heptagon *, hr::heptagon *> >, std::__1::equal_to<std::__1::pair<hr::heptagon *,
      hr::heptagon *> >, std::__1::allocator<std::__1::pair<const std::__1::pair<hr::heptagon *, hr::heptagon *>, hr::heptagon *> > >'
      requested here
    unordered_map<pair<heptagon*, heptagon*>, heptagon*> at;
                                                         ^

./nonisotropic.cpp:457:49: error: no matching member function for call to 'iadj'
      while(h1->distance < h2->distance) back = iadj(h2, down) * back, h2 = h2->cmove(down);
                                                ^~~~
cell.cpp:42:15: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  transmatrix iadj(heptagon *h, int d) {
              ^
cell.cpp:41:22: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  struct transmatrix iadj(cell *c, int i) { cell *c1 = c->cmove(i); return adj(c1, c->c.spin(i)); }
                     ^
```
2020-10-19 13:15:29 -04:00
Zeno Rogue
d64c5e338c extra guards 2020-10-15 16:33:52 +02:00
Zeno Rogue
b72414ae2a halloween: dragons only in sphere 2020-09-17 04:36:36 +02:00
Zeno Rogue
68fa0c83e7 fixed Halloween 2020-09-17 04:35:49 +02:00
Zeno Rogue
1f1e7d9bbf inverse tessellation operators 2020-07-12 21:39:34 +02:00
Arthur O'Dwyer
f2b7746c1b Move all defaulting-of-CAP_FOO to sysconfig.h.
- The phrase `#ifdef CAP_` should never appear anywhere.

- The phrase `#ifndef CAP_` should appear only in sysconfig.h.

- The phrases `#if CAP_` and `#if !CAP_` may appear wherever,
    as long as "sysconfig.h" is included first.

The rules for `CAP_FOO` equally apply to `ISFOO`.

There are many one-off macros still tested with `#ifdef`,
including `HAVE_ACHIEVEMENTS`, `PRINT_ACHIEVEMENTS`,
`FAKEWEB`, `FAKE_SDL`, `EASY`, and `WHATEVER`. I don't
have much grasp on what these are used for or how they're
configured, so I'm leaving them alone.
2020-05-03 15:12:12 -04:00
Zeno Rogue
6f6586b3f2
Merge branch 'master' into hooks-naming 2020-04-19 13:39:07 +02:00
Zeno Rogue
85a404bfe8 CA awards Orb of Aether automatically 2020-04-12 20:38:17 +02:00
Zeno Rogue
11d119766d CA for infinite 2020-04-12 20:33:53 +02:00
Zeno Rogue
43e1204e18 CLI option -carun 2020-04-12 20:33:31 +02:00
Arthur O'Dwyer
934e3d9a42 Consistently name every hookset with prefix hooks_. NFC.
I'm sure this causes massive merge-conflicts in the non-public code,
but I think it'd be a good idea, if only to avoid confusion between
e.g. `clearMemory` and the-variable-formerly-known-as `clearmemory`.
2020-04-12 10:49:32 -04:00
Zeno Rogue
a7347bdd20 Blizzard special heat rules are now only active if both lands are Blizzard 2020-04-06 09:36:57 +02:00
Zeno Rogue
97fc244ba9 changed some achievement_gain to achievement_gain_once (this also fixes achievements awarded too soon) 2020-04-06 09:22:05 +02:00
Arthur O'Dwyer
7a706478dc Add a helper function voidp to silence GCC warnings about %p.
We must fully qualify calls to `hr::voidp` because the expression
`voidp(x)` is ambiguous or worse. "/usr/include/zconf.h" defines
`voidp` in the global namespace as a typedef for `void*`.
We don't want an unsafe functional-style cast to `void*`;
we want to call our nice safe helper function. So we qualify the name.
2020-03-23 14:39:28 -04:00
Zeno Rogue
11447fcb7b tortoise:: shading now can be disabled 2020-03-22 09:46:13 +01:00
Zeno Rogue
0381999842 Orb of Chaos no longer despecializes Tortoises 2020-03-12 10:22:46 +01:00
Zeno Rogue
40d0c7e5e2 fixed Swords moving randomly when having Orb of the Frog 2020-03-07 23:47:31 +01:00
Zeno Rogue
50123e42c7 fixed kraken head 2020-03-07 04:47:11 +01:00
Zeno Rogue
9ded3f8c7c changes:: fixed Galapagos 2020-03-07 04:47:10 +01:00
Zeno Rogue
10f63743ab elec: charged walls are destroyed if they are adjacent to grounded walls 2020-03-07 04:47:10 +01:00
Zeno Rogue
477b0e4ed4 changes:: fixed mimics 2020-03-07 04:47:10 +01:00
Zeno Rogue
44c79a468c comments about imputed and direct 2020-03-07 04:47:10 +01:00
Zeno Rogue
b0eb4e816b location.cpp now defines constants global_distance_limit and iteration_limit 2020-03-07 04:47:10 +01:00
Zeno Rogue
c1c4cea31f replaced clearing::buggyplant with bpdata::buggy 2020-03-07 04:47:10 +01:00
Zeno Rogue
103a3a3411 more changes.ccell added 2020-03-07 04:47:10 +01:00
Zeno Rogue
70d7fde8d4 clearing:: fixed some bugs when reached too far into the center 2020-03-07 04:47:10 +01:00
Zeno Rogue
62734bbfc5 charge help, and fixed a bug in help in weird geometry warped cells 2020-03-07 04:47:10 +01:00
Zeno Rogue
e564622a48 rewritten undo: part 1 2020-03-07 04:47:10 +01:00
Zeno Rogue
e62705787e ungenerated land is now Isolator 2020-03-07 04:47:10 +01:00
Zeno Rogue
a1eab8d183 heat in Eclectic 2020-03-07 04:47:10 +01:00
Zeno Rogue
8cdb45ec01 adjusted elec to Eclectic City 2020-03-07 04:47:10 +01:00
Zeno Rogue
bc12d35053 fixup to ElectricLand 2020-03-07 04:47:10 +01:00
Zeno Rogue
2271a67506 removed the MAX_EDGE limit 2020-01-18 16:03:32 +01:00
Zeno Rogue
ddc3666fb4 correctly remove Clearing score memory 2020-01-02 16:50:15 +01:00
Zeno Rogue
17ffe53839 clearing:: clear memory on new game 2019-12-27 14:02:21 +01:00
Zeno Rogue
6c61162392 merge 2019-12-26 22:40:41 +01:00
Zeno Rogue
0b7faa4b46 adjacency rule now also affects: slime spill, storms, heat, dry, live caves 2019-12-26 19:04:32 +01:00
Zeno Rogue
78930f08f9 no clearing::imput on bounded 2019-12-26 09:40:16 +01:00
Zeno Rogue
4848cb1b87 show the big numbers in the Clearing 2019-12-25 21:57:25 +01:00
Zeno Rogue
8cfc5a578f renamed penrose.cpp to kite.cpp and 'penrose' to 'kite::in()' 2019-12-14 12:12:24 +01:00