Generalize the editor's terrain frills mechanism

This commit is contained in:
2015-09-26 15:05:49 -04:00
parent 06930e30d4
commit ab232bb31a
10 changed files with 74 additions and 17 deletions

View File

@@ -384,4 +384,12 @@ void cTerrain::append(legacy::terrain_type_type& old){
};
if(picture < 1000) map_pic = picture;
else map_pic = NO_PIC;
if(i == 1)
frill_for = 0, frill_chance = 10;
else if(i == 3)
frill_for = 2, frill_chance = 15;
else if(i == 4)
frill_for = 2, frill_chance = 10;
else if(i == 37)
frill_for = 36, frill_chance = 25;
}

View File

@@ -38,6 +38,8 @@ public:
unsigned int ground_type = 0; // ditto
eTrimType trim_type = eTrimType::NONE; // ditto, mostly
long trim_ter = 0; // ditto
long frill_for = -1;
unsigned short frill_chance = 0;
unsigned short combat_arena = 0;
location obj_pos; // editor use only
location obj_size; // editor use only