Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed dungeon generation (by retrying), fixable sumo house (thru DevCons cmd), etc. #597

Merged
merged 34 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
15d64ae
Merge pull request #24 from Attnam/master
AquariusPower May 24, 2018
99ef7d6
Merge pull request #25 from Attnam/master
AquariusPower May 28, 2018
af8c444
Merge pull request #26 from Attnam/master
AquariusPower May 29, 2018
9979cf8
Merge pull request #27 from Attnam/master
AquariusPower May 30, 2018
8714ec6
Merge pull request #28 from Attnam/master
AquariusPower May 31, 2018
47044b9
Merge pull request #29 from Attnam/master
AquariusPower May 31, 2018
b4be00e
Merge branch 'master' of https://github.com/Attnam/ivan into Attnam-m…
AquariusPower Jun 1, 2018
a5387b8
Merge branch 'master' of https://github.com/Attnam/ivan into Attnam-m…
AquariusPower Jun 1, 2018
9f2cf80
Merge pull request #30 from Attnam/master
AquariusPower Jun 6, 2018
6d71776
Merge pull request #31 from Attnam/master
AquariusPower Jun 13, 2018
0f7bbaa
Merge pull request #32 from Attnam/master
AquariusPower Jun 19, 2018
932103d
Merge pull request #33 from Attnam/master
AquariusPower Jun 28, 2018
d5bfecc
Merge pull request #34 from Attnam/master
AquariusPower Jul 19, 2018
d028bf9
Merge pull request #35 from Attnam/master
AquariusPower Jul 19, 2018
1812c10
Merge pull request #37 from Attnam/master
AquariusPower Jul 20, 2018
cf1dc8e
Merge pull request #38 from Attnam/master
AquariusPower Jul 21, 2018
91dd7fd
Merge pull request #39 from Attnam/master
AquariusPower Aug 29, 2018
11f489a
Merge pull request #40 from Attnam/master
AquariusPower Sep 1, 2018
10b7dab
Merge pull request #41 from Attnam/master
AquariusPower Oct 2, 2018
5e97b45
Merge pull request #42 from Attnam/master
AquariusPower Oct 2, 2018
2bcac17
Merge pull request #43 from Attnam/master
AquariusPower Dec 15, 2018
2adf952
Merge pull request #44 from Attnam/master
AquariusPower Dec 17, 2018
2ea63f2
Merge pull request #45 from Attnam/master
AquariusPower Dec 21, 2018
e9ef42d
Merge pull request #46 from Attnam/master
AquariusPower Jan 9, 2019
720ec65
Merge pull request #48 from Attnam/master
AquariusPower Jan 21, 2019
57200e5
Merge pull request #49 from Attnam/master
AquariusPower Feb 6, 2019
8d98a16
Merge branch 'master' of https://github.com/Attnam/ivan into Attnam-m…
AquariusPower Apr 24, 2020
3c0083f
Fixed dungeon generation about "invalid config sought" that would ABORT;
AquariusPower May 2, 2020
0e96af9
Merge branch 'master' into FixDungeonGen
AquariusPower Jun 2, 2020
019f405
Merge branch 'master' into FixDungeonGen
ryfactor Sep 14, 2021
fec00f0
Merge branch 'master' into FixDungeonGen
ryfactor Oct 26, 2021
60fe978
rm extra static truth InstallDataBaseIfPossible()
ryfactor Oct 26, 2021
318a9ab
Fix Banana Growers blocking the Sumo's door
ryfactor Oct 29, 2021
701cbd5
Merge pull request #68 from fejoa/FixDungeonGen
AquariusPower Nov 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions FeLib/Include/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
#define SIGNALS 8
#endif

class genericException
{
public:
genericException(cchar* pc);
cchar* GetMsg(){return pcMsg;};
static truth IsGenNewLvl(){return bGeneratingNewDungeonLevel;}
static truth ToggleGenNewLvl(){return bGeneratingNewDungeonLevel = !bGeneratingNewDungeonLevel;return bGeneratingNewDungeonLevel;}
private:
cchar* pcMsg;
static truth bGeneratingNewDungeonLevel;
};

class globalerrorhandler
{
public:
Expand Down
10 changes: 10 additions & 0 deletions FeLib/Source/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ void globalerrorhandler::DumpStackTraceToStdErr(int Signal){
}
#endif


genericException::genericException(cchar* pc)
{
pcMsg=pc;
DBG1(pc);
DBGBREAKPOINT;
}

void globalerrorhandler::Install()
{
static truth AlreadyInstalled = false;
Expand Down Expand Up @@ -218,3 +226,5 @@ void globalerrorhandler::SignalHandler(int Signal)
}

#endif

truth genericException::bGeneratingNewDungeonLevel=false;
4 changes: 2 additions & 2 deletions Main/Include/bugworkaround.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ class bugfixdp{
static void init();
static character* ValidatePlayerAt(square* sqr);
static bool IsFixing();
static std::vector<character*> FindCharactersOnLevel(bool bOnlyPlayers=false);

private:
static character* BugWorkaroundDupPlayer();
static void DevConsCmd(std::string strCmdParams);
static void DevConsCmd(festring fsCmdParams);

static void GatherAllItemInLevel();
static bool ItemWork(character* Char, item* it, bool bFix, const char* cInfo, std::vector<item*>* pvItem,bool bSendToHell);
Expand All @@ -42,7 +43,6 @@ class bugfixdp{

static character* FindByPlayerID1(v2 ReqPosL,bool bAndFixIt);
static std::vector<character*> FindByPlayerFlag();
static std::vector<character*> FindCharactersOnLevel(bool bOnlyPlayers=false);
static bool ScanLevelForCharactersAndItemsWork(item*, bool, bool, std::vector<bugWorkaroundDupPlayerCharItem>*);
static void CollectAllItemsOnLevel(std::vector<item*>* pvAllItemsOnLevel);
static void CollectAllCharactersOnLevel(std::vector<character*>* pvCharsOnLevel);
Expand Down
1 change: 1 addition & 0 deletions Main/Include/char.h
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,7 @@ class character : public entity, public id
void SetNewVomitMaterial(int What) { MyVomitMaterial = What; }
festring GetHitPointDescription() const;
truth WillGetTurnSoon() const;
virtual void SetFeedingSumo(truth What) { return; }
protected:
static truth DamageTypeDestroysBodyPart(int);
virtual void LoadSquaresUnder();
Expand Down
Loading