Generalize the editor's terrain frills mechanism
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user