Various field/belt related stuff
- Remove all field booleans except quickfire and belt, which have been moved to cCurTown - Alter and extend place_spell_pattern, to allow arbitrary damage types and to make it more clear in the code what's happening when it's called - Delete fields.cpp file; a few things moved to locutils.cpp, but most are now part of cCurTown - set_terrain function automatically updates belt present boolean if setting to a conveyor.
This commit is contained in:
@@ -33,7 +33,9 @@ class cCurTown {
|
||||
cSpeech* curTalk = NULL;
|
||||
bool talkNeedsDeleting = false;
|
||||
short cur_talk_loaded = -1;
|
||||
bool free_for_sfx(short x, short y);
|
||||
public:
|
||||
bool quickfire_present = false, belt_present = false;
|
||||
cTown* record;
|
||||
// formerly current_town_type
|
||||
short num; // 200 if outdoors (my addition)
|
||||
@@ -123,6 +125,7 @@ public:
|
||||
bool set_rubble(char x, char y, bool b);
|
||||
bool set_force_cage(char x, char y, bool b);
|
||||
// bool set_trim(char x, char y, char t, bool b);
|
||||
bool is_impassable(short x, short y);
|
||||
void writeTo(std::ostream& file);
|
||||
void readFrom(std::istream& file);
|
||||
|
||||
|
Reference in New Issue
Block a user