elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
advent
/
global.c
File editor
/* Play variables */ #include "advent.h" struct state game = { /* turns */ 0, /* loc */ 1, /* oldloc */ 1, /* oldloc2 */ 1, /* newloc */ 3, /* cond[MAXLOC] location status */ { 0, 5, 1, 5, 5, 1, 1, 5, 17, 1, /* 0 - 9 */ 1, 0, 0, 32, 0, 0, 2, 0, 0, 64, /* 10 - 19 */ 2, 2, 2, 0, 6, 0, 2, 0, 0, 0, /* 20 - 29 */ 0, 2, 2, 0, 0, 0, 0, 0, 4, 0, /* 30 - 39 */ 2, 0, 128, 128, 128, 128, 136, 136, 136, 128, /* 40 - 49 */ 128, 128, 128, 136, 128, 136, 0, 8, 0, 2, /* 50 - 59 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 60 - 69 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, /* 70 - 79 */ 128, 128, 136, 0, 0, 8, 136, 128, 0, 2, /* 80 - 89 */ 2, 0, 0, 0, 0, 4, 0, 0, 0, 0, /* 90 - 99 */ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 100 - 109 */ 0, 0, 0, 4, 0, 1, 1, 0, 0, 0, /* 110 - 119 */ 0, 0, 8, 8, 8, 8, 8, 8, 8, 8, /* 120 - 129 */ 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 130 - 139 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 140 - 149 */ }, /* place[MAXOBJ] object location */ { 0, 3, 3, 8, 10, 11, 0, 14, 13, 94, /* 0 - 9 */ 96, 19, 17, 101, 103, 0, 106, 0, 0, 3, /* 10 - 19 */ 3, 0, 0, 109, 25, 23, 111, 35, 0, 97, /* 20 - 29 */ 0, 119, 117, 117, 0, 130, 0, 126, 140, 0, /* 30 - 39 */ 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 40 - 49 */ 18, 27, 28, 29, 30, 0, 92, 95, 97, 100, /* 50 - 59 */ 101, 0, 119, 127, 130, 0, 0, 0, 0, 0, /* 60 - 69 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 70 - 79 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 80 - 89 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 90 - 99 */ }, /* fixed[MAXOBJ] second object loc */ { 0, 0, 0, 9, 0, 0, 0, 15, 0, -1, /* 0 - 9 */ 0, -1, 27, -1, 0, 0, 0, -1, 0, 0, /* 10 - 19 */ 0, 0, 0, -1, -1, 67, -1, 110, 0, -1, /* 20 - 29 */ -1, 121, 122, 122, 0, -1, -1, -1, -1, 0,/* 30 - 39 */ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 40 - 49 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 50 - 59 */ 0, 0, 121, 0, -1, 0, 0, 0, 0, 0, /* 60 - 69 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 70 - 79 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 80 - 89 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 90 - 99 */ }, /* visited[MAXLOC] >0 if has been here */ { 0, }, /* prop[MAXOBJ] status of object */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0 - 9 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 10 - 19 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 20 - 29 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 30 - 39 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 40 - 49 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 50 - 59 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 60 - 69 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 70 - 79 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 80 - 89 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 90 - 99 */ }, /* tally */ 15, /* item counts */ /* tally2 */ 0, /* limit */ 100, /* time limit */ /* lmwarn */ 0, /* lamp warning flag */ /* wzdark */ FALSE, /* closing */ FALSE, /* closed */ FALSE, /* holding */ 0, /* count of held items */ /* detail */ 0, /* LOOK count */ /* knfloc */ 0, /* knife location */ /* clock1 */ 30, /* timing variables */ /* clock2 */ 50, /* panic */ 0, /* dloc[DWARFMAX] dwarf locations */ { 0, 19, 27, 33, 44, 64, 0 /* 0 - 6 */ }, /* dflag */ 0, /* dwarf flag */ /* dseen[DWARFMAX]; dwarf seen flag */ { 0, }, /* odloc[DWARFMAX]; dwarf old locs */ { 0, }, /* daltloc */ 18, /* alt appearance */ /* dkill */ 0, /* dwarves killed */ /* chloc */ 114, /* chest locations */ /* chloc2 */ 140, /* bonus */ 0, /* to pass to end */ /* numdie */ 0, /* number of deaths */ /* object1 */ 0, /* to help intrans. */ /* gaveup */ FALSE, /* foobar */ 0, /* fie fie foe foo... */ /* saveflg */ FALSE, /* game being saved? */ /* dbgflg */ 0 /* game in restart? */ };
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history