last minute tuto changes
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 13s
Create tag and build when new code gets to main / Export (push) Successful in 1m30s

This commit is contained in:
2026-02-01 17:10:24 +01:00
parent f760cecbf7
commit 661510d7f6
12 changed files with 63 additions and 16 deletions

View File

@@ -126,12 +126,14 @@ func compute_ending():
func ending_tween_cb():
var final_score = 0.0
for table in tables:
final_score += table.compute_score()
var table1_score = tables[0].compute_score()
var table2_score = tables[1].compute_score()
var table3_score = tables[2].compute_score()
final_score = table1_score + table2_score + table3_score
print("Final score: %s" % final_score)
if final_score < 0:
var is_defeat = table1_score < 0 or table2_score < 0 or table3_score < 0
if is_defeat:
defeat_noise.emit()
else:
victory_noise.emit()
@@ -147,12 +149,15 @@ func ending_tween_cb():
current_game_state = GameState.READY
ring_bell.visible = true
bell_anim_player.play("idle")
if is_defeat:
return
if current_level == Levels.LVL1 and final_score >= 0:
if current_level == Levels.LVL1:
current_level = Levels.LVL2
elif current_level == Levels.LVL2:
current_level = Levels.LVL3
elif final_score >= 0:
else:
roster_size += 1
current_level = Levels.RANDOM

View File

@@ -41,7 +41,7 @@ func compute_score(other_guests: Array[MaskedChara]) -> float:
for guest_trait in guest_traits:
var trait_strength = 0.0
for stimuli in guest_trait.stimulis:
var strength = stimuli
var strength = 1.0
if guest_mouth_mask != null and stimuli == guest_mouth_mask.stimuli:
strength *= guest_mouth_mask.stimuli_multiplier
if face_mask != null and stimuli == face_mask.stimuli:
@@ -51,6 +51,7 @@ func compute_score(other_guests: Array[MaskedChara]) -> float:
var preference = character.preferences.get(guest_trait) if guest_trait in character.preferences else CharacterResource.Preference.DONT_CARE
var score_multiplier = pref_score_map.get(preference) if preference in pref_score_map else 0.0
guest_appreciation += trait_strength*score_multiplier
print(guest_appreciation)
overall_score += guest_appreciation