1.更新菜园系统的植物加载体系2.修复冒险中定义的植物与菜园系统脱离的错误
This commit is contained in:
@@ -39,6 +39,7 @@ class GardenConfig(BaseModel):
|
||||
fortune_coeff: float
|
||||
theft_threshold_ratio: float
|
||||
seed_store_limit: int
|
||||
crops_config_path: str
|
||||
|
||||
class Config:
|
||||
allow_mutation = False
|
||||
@@ -51,6 +52,7 @@ class GardenConfig(BaseModel):
|
||||
fortune_coeff = float(project_config.FindItem("garden_fortune_coeff", 0.03))
|
||||
theft_ratio = float(project_config.FindItem("garden_theft_threshold_ratio", 0.5))
|
||||
seed_store_limit = int(project_config.FindItem("garden_seed_store_limit", 5))
|
||||
crops_config_path = str(project_config.FindItem("garden_crops_config_path", "Plugins/garden_crops.json"))
|
||||
project_config.SaveProperties()
|
||||
return cls(
|
||||
max_plots=max_plots,
|
||||
@@ -58,6 +60,7 @@ class GardenConfig(BaseModel):
|
||||
fortune_coeff=fortune_coeff,
|
||||
theft_threshold_ratio=theft_ratio,
|
||||
seed_store_limit=seed_store_limit,
|
||||
crops_config_path=crops_config_path,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user