last minute tuto changes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user