22 lines
446 B
GDScript
22 lines
446 B
GDScript
extends Machine
|
|
class_name RechargeStation
|
|
|
|
var planet : Planet # mis à jour par la classe Planet
|
|
|
|
func interact(_p: Player) -> bool:
|
|
|
|
planet.pass_day()
|
|
|
|
return true
|
|
|
|
func interact_text():
|
|
return "Recharge"
|
|
|
|
func pointer_text():
|
|
return "Recharge Station"
|
|
|
|
func inspector_info() -> Inspector.Info:
|
|
return Inspector.Info.new(
|
|
pointer_text(),
|
|
"You can recharge your robot here. When recharging, time will pass and plants may grow."
|
|
) |