Add freshwater habitats and saltwater tide ribbons
This commit is contained in:
parent
53fdc9ef21
commit
69b7969e25
40 changed files with 1323 additions and 148 deletions
|
|
@ -16,6 +16,8 @@ enum Rarity {
|
|||
|
||||
@export var id: StringName
|
||||
@export var display_name: String
|
||||
@export_flags("Fresh Water", "Salt Water")
|
||||
var allowed_water_types: int = WaterType.ALL_FISHABLE_MASK
|
||||
@export var rarity: Rarity = Rarity.COMMON
|
||||
@export_range(0.0, 1000.0, 0.01) var base_catch_weight: float = 1.0
|
||||
@export var catch_profile: CatchDifficultyProfileType
|
||||
|
|
@ -47,6 +49,18 @@ func is_selectable() -> bool:
|
|||
)
|
||||
|
||||
|
||||
func is_allowed_in_water(type: WaterType.Type) -> bool:
|
||||
return (allowed_water_types & WaterType.mask_for(type)) != 0
|
||||
|
||||
|
||||
func get_primary_water_type() -> WaterType.Type:
|
||||
if allowed_water_types & WaterType.FRESH_WATER_MASK:
|
||||
return WaterType.Type.FRESH_WATER
|
||||
if allowed_water_types & WaterType.SALT_WATER_MASK:
|
||||
return WaterType.Type.SALT_WATER
|
||||
return WaterType.Type.OTHER
|
||||
|
||||
|
||||
func get_minimum_weight() -> float:
|
||||
return maxf(weight_min_lb, 0.01)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue