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:
@@ -167,6 +167,7 @@ _data = {
|
||||
|
||||
[node name="ArtefactAnnounce" type="CanvasLayer" unique_id=1447182082]
|
||||
layer = 2
|
||||
visible = false
|
||||
script = ExtResource("1_2sroa")
|
||||
announce_artefact = SubResource("Resource_3vg7r")
|
||||
|
||||
@@ -261,7 +262,7 @@ own_world_3d = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(300, 300)
|
||||
|
||||
[node name="AnnouceObject" type="Node3D" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport" unique_id=1527573801]
|
||||
[node name="AnnounceObject" type="Node3D" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport" unique_id=1527573801]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(0.49246997, -0.037707455, 0.8692438, 0.6477846, -0.65092874, -0.39512447, 0.5810579, 0.75763476, -0.2962104, 0, 0, 0)
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ metadata/_custom_type_script = "uid://bj4d1x8n8ina"
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.0430325, 0)
|
||||
stream = SubResource("AudioStreamRandomizer_amehi")
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="BreakParticles" type="CPUParticles3D" parent="." unique_id=1968257379]
|
||||
unique_name_in_owner = true
|
||||
@@ -76,11 +77,9 @@ shape = SubResource("BoxShape3D_nvfy2")
|
||||
|
||||
[node name="ArtefactAnnounce" parent="." unique_id=114641656 instance=ExtResource("8_3rrt0")]
|
||||
unique_name_in_owner = true
|
||||
visible = true
|
||||
announce_artefact = null
|
||||
|
||||
[node name="MutationAnnounce" parent="." unique_id=1447182082 instance=ExtResource("9_247i2")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
|
||||
[editable path="CristalModelCrack"]
|
||||
|
||||
@@ -164,6 +164,7 @@ _data = {
|
||||
|
||||
[node name="MutationAnnounce" type="CanvasLayer" unique_id=1447182082]
|
||||
layer = 2
|
||||
visible = false
|
||||
script = ExtResource("1_02o74")
|
||||
|
||||
[node name="Container" type="Control" parent="." unique_id=250759747]
|
||||
@@ -272,11 +273,11 @@ own_world_3d = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(300, 300)
|
||||
|
||||
[node name="AnnouceObject" type="Node3D" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport" unique_id=1527573801]
|
||||
[node name="AnnounceObject" type="Node3D" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport" unique_id=1527573801]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-0.66996473, 0.079749085, -0.73779225, -0.56796145, 0.58463466, 0.5788058, 0.47777697, 0.80682886, -0.34651512, 0, 0, 0)
|
||||
|
||||
[node name="cristal" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport/AnnouceObject" unique_id=1362490576 instance=ExtResource("12_wy2oe")]
|
||||
[node name="cristal" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport/AnnounceObject" unique_id=1362490576 instance=ExtResource("12_wy2oe")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="Container/AnnounceContainer/ObjectVisualiser/SubViewport" unique_id=173755338]
|
||||
|
||||
@@ -50,13 +50,13 @@ func update_rotation(delta):
|
||||
else :
|
||||
object_acceleration = object_acceleration.lerp(DEFAULT_OBJECT_ACCELERATION, 0.1)
|
||||
|
||||
%AnnouceObject.rotate(Vector3.UP, object_rotation.x * delta)
|
||||
%AnnouceObject.rotate(Vector3.RIGHT, object_rotation.y * delta)
|
||||
%AnnounceObject.rotate(Vector3.UP, object_rotation.x * delta)
|
||||
%AnnounceObject.rotate(Vector3.RIGHT, object_rotation.y * delta)
|
||||
|
||||
|
||||
func set_announce_artefact(artefact := announce_artefact):
|
||||
if is_node_ready():
|
||||
for c in %AnnouceObject.get_children():
|
||||
for c in %AnnounceObject.get_children():
|
||||
c.queue_free()
|
||||
|
||||
if is_node_ready() and artefact:
|
||||
@@ -65,7 +65,7 @@ func set_announce_artefact(artefact := announce_artefact):
|
||||
%AnnounceText.text = artefact.get_artefact_name()
|
||||
%ObjectVisualiser.info = artefact.card_info()
|
||||
|
||||
%AnnouceObject.add_child(
|
||||
%AnnounceObject.add_child(
|
||||
artefact.get_3d_scene().instantiate()
|
||||
)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ const DEFAULT_OBJECT_ACCELERATION = Vector2(3,0)
|
||||
|
||||
@export_tool_button("Update", "Callable") var update_action = set_announce_mutation
|
||||
|
||||
var announce_objects : Array[AnnouceObject] = []
|
||||
var announce_objects : Array[AnnounceObject] = []
|
||||
|
||||
var object_acceleration := Vector2(0,0)
|
||||
|
||||
@@ -52,8 +52,8 @@ func update_rotation(delta):
|
||||
else :
|
||||
object_acceleration = object_acceleration.lerp(DEFAULT_OBJECT_ACCELERATION, 0.1)
|
||||
|
||||
%AnnouceObject.rotate(Vector3.UP, object_rotation.x * delta)
|
||||
%AnnouceObject.rotate(Vector3.RIGHT, object_rotation.y * delta)
|
||||
%AnnounceObject.rotate(Vector3.UP, object_rotation.x * delta)
|
||||
%AnnounceObject.rotate(Vector3.RIGHT, object_rotation.y * delta)
|
||||
|
||||
|
||||
func set_announce_mutation(mutation := announce_mutation):
|
||||
|
||||
@@ -20,20 +20,20 @@ func get_artefacts() -> Array[Artefact]:
|
||||
return GameInfo.game_data.current_run.artefacts
|
||||
return []
|
||||
|
||||
func update_with_artefacts(artefacts : Array[Artefact]):
|
||||
inventory.seeds_size = calculate_inventory_size(artefacts)
|
||||
max_energy = calculate_max_energy(artefacts)
|
||||
func update_with_run_data(run_data : RunData):
|
||||
inventory.seeds_size = calculate_inventory_size(run_data)
|
||||
max_energy = calculate_max_energy(run_data)
|
||||
updated.emit()
|
||||
|
||||
func calculate_max_energy(artefacts : Array[Artefact]) -> int:
|
||||
var v = DEFAULT_MAX_ENERGY
|
||||
for a in artefacts:
|
||||
func calculate_max_energy(run_data : RunData) -> int:
|
||||
var v = run_data.story_step.get_player_max_energy()
|
||||
for a in run_data.artefacts:
|
||||
v = a.modify_player_max_energy(v)
|
||||
return v
|
||||
|
||||
func calculate_inventory_size(artefacts : Array[Artefact]) -> int:
|
||||
var v = DEFAULT_INVENTORY_SIZE
|
||||
for a in artefacts:
|
||||
func calculate_inventory_size(run_data : RunData) -> int:
|
||||
var v = run_data.story_step.get_player_max_inventory()
|
||||
for a in run_data.artefacts:
|
||||
v = a.modify_player_inventory_size(v)
|
||||
return v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user