灵感再次枯竭,我休息一会
This commit is contained in:
@@ -109,6 +109,16 @@ static void plate_speed(struct Plate_list _i,uint64_t seed){
|
||||
}
|
||||
}
|
||||
|
||||
static void plate_age(struct Plate_list _i,uint64_t seed){
|
||||
for(int i=0;i<_i.count;i++){
|
||||
if((_i._p+i)->is_ocean){
|
||||
(_i._p+i)->age=(double)game_hash(seed,PLATE_AGE,i)/UINT64_MAX*200;
|
||||
}else{
|
||||
(_i._p+i)->age=200+(double)game_hash(seed,PLATE_AGE,i)/UINT64_MAX*3800;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct Plate_list plate_init(uint64_t seed,struct World_Block *block){
|
||||
int count = plate_count(seed);
|
||||
struct Plate_list list;
|
||||
@@ -117,5 +127,9 @@ struct Plate_list plate_init(uint64_t seed,struct World_Block *block){
|
||||
plate_seed(list,seed);
|
||||
lloyd_init(block,list);
|
||||
lloyd_iterate(block,list,2);
|
||||
plate_is_ocean(list,seed);
|
||||
plate_thick(list,seed);
|
||||
plate_speed(list,seed);
|
||||
plate_age(list,seed);
|
||||
return list;
|
||||
}
|
||||
Reference in New Issue
Block a user