1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 07:27:40 +00:00

generate honeycomb rules

This commit is contained in:
Zeno Rogue
2020-01-26 01:22:04 +01:00
parent 6a5b71cbdc
commit 891fd3b0aa
2 changed files with 367 additions and 0 deletions

View File

@@ -592,6 +592,7 @@ EX namespace reg3 {
h.cdata = NULL;
h.alt = NULL;
h.distance = 0;
h.fiftyval = 0;
h.fieldval = 0;
h.c7 = newCell(S7, origin);
if(sphere) spherecells.push_back(h.c7);
@@ -774,6 +775,7 @@ EX namespace reg3 {
created->zebraval = hrand(10);
created->fieldval = fv;
created->distance = parent->distance + 1;
created->fiftyval = 9999;
fixmatrix(T);
reg_gmatrix[created] = make_pair(alt, T);
altmap[alt].emplace_back(created, T);