* changements des objectifs, donnent juste des graines, sprite moins gros et objectifs plus nombreux * changement de la probabilité de mutation * refactor du code terrain et planet
17 lines
356 B
GDScript
17 lines
356 B
GDScript
extends Compost
|
|
class_name SeedCompost
|
|
|
|
func get_seeds_production(l : int = level) -> int:
|
|
match l:
|
|
1: return 2
|
|
2: return 2
|
|
3: return 2
|
|
_: return 1
|
|
|
|
func product(player : Player):
|
|
for i in range(get_seeds_production()):
|
|
player.terrain.drop_item(
|
|
Seed.new(GameInfo.game_data.unlocked_plant_types.pick_random()),
|
|
global_position,
|
|
100
|
|
) |