Merge branch 'demo'
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
extends Resource
|
||||
class_name PlantMutation
|
||||
|
||||
const MAX_RARITY = 6
|
||||
|
||||
@export var level: int = 1
|
||||
|
||||
var id: String: get = get_mutation_id
|
||||
@@ -32,7 +34,7 @@ func has_score(_plant_data: PlantData) -> bool:
|
||||
func mutate_score(_plant_data: PlantData, score: int) -> int:
|
||||
return score
|
||||
|
||||
func mutate_score_multiplier(_plant_data: PlantData, multiplier: int) -> int:
|
||||
func mutate_score_multiplier(_plant_data: PlantData, multiplier: float) -> float:
|
||||
return multiplier
|
||||
|
||||
func mutate_lifetime(_plant_data: PlantData, lifetime: int) -> int:
|
||||
@@ -124,10 +126,11 @@ static func get_rarity_text(rarity) -> String:
|
||||
|
||||
static func get_rarity_color(rarity: int) -> Color:
|
||||
var rarity_colors: Array[Color] = [
|
||||
Color("2364AA"),
|
||||
Color("25C147"),
|
||||
Color("8B2DFF"),
|
||||
Color("FF006E"),
|
||||
Color("25c147"),
|
||||
Color("00c6ca"),
|
||||
Color("8b2dff"),
|
||||
Color("ff006e"),
|
||||
Color("ff5427"),
|
||||
Color("FFA617"),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user