mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Dev: Optimize camera_data generation, only generated on active grids
This commit is contained in:
@@ -68,7 +68,7 @@ class CampaignMap:
|
||||
self.grids[(x, y)] = grid
|
||||
|
||||
# camera_data can be generate automatically, but it's better to set it manually.
|
||||
self.camera_data = [location2node(loca) for loca in camera_2d(self._shape, sight=self.camera_sight)]
|
||||
self.camera_data = [location2node(loca) for loca in camera_2d((0, 0, *self._shape), sight=self.camera_sight)]
|
||||
self.camera_data_spawn_point = []
|
||||
# weight_data set to 10.
|
||||
for grid in self:
|
||||
|
||||
Reference in New Issue
Block a user