Ajout de l'amélioration du modèle du robot au cours de l'histoire, d'une annonce sur cette amélioration ainsi qu'un succès à l'utilisation de toutes les incubateurs d'orchid dans une base

This commit is contained in:
2026-07-10 16:25:33 +02:00
parent be33225d4d
commit cb5a2421ae
32 changed files with 254 additions and 51 deletions
@@ -0,0 +1,36 @@
@tool
extends AnnounceObject
class_name AnnounceTool
const ITEM_3D_SCENE = preload("res://gui/game/inventory_gui/inventory_item/inventory_item_3d.tscn")
@export var tool_item : Item
func _init(
_tool_item : Item,
_image : Texture = null,
_desc := _tool_item.get_description(),
):
tool_item = _tool_item
desc = _desc
image = _image
func get_3d_object() -> Node3D:
var new_object = ITEM_3D_SCENE.instantiate() as InventoryItem3D
new_object.item = tool_item
new_object.state = InventoryItem3D.State.TOOL
return new_object
func get_title() -> String:
return "NEW_TOOL"
func get_text() -> String:
return tool_item.get_item_name()
func get_card_info() -> CardInfo:
return tool_item.card_info()
func _on_dismiss():
pass
# GameInfo.game_data.player_data.tool_discovered.append(tool_item.get_item_name())