* ajout du panneau solaire #54 * ajout d'un tutoriel #53 * equilibrage du jeu #73 * ajout d'un son pour l'annonce
17 lines
355 B
GDScript
17 lines
355 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.planet.drop_item(
|
|
Seed.new(GameInfo.game_data.unlocked_plant_types.pick_random()),
|
|
global_position,
|
|
100
|
|
) |