Adapt decay values
This commit is contained in:
parent
51546337ce
commit
5147614870
|
@ -17,21 +17,21 @@ class ProfileData:
|
||||||
self.lashout_decay = lashout_decay
|
self.lashout_decay = lashout_decay
|
||||||
self.joke_mood_mapping = joke_mood_mapping
|
self.joke_mood_mapping = joke_mood_mapping
|
||||||
|
|
||||||
@export var happy_threshold : float
|
var happy_threshold : float
|
||||||
@export var angry_threshold : float
|
var angry_threshold : float
|
||||||
@export var lashout_threshold : float
|
var lashout_threshold : float
|
||||||
|
|
||||||
@export var happiness_decay : float
|
var happiness_decay : float
|
||||||
@export var lashout_decay : float
|
var lashout_decay : float
|
||||||
|
|
||||||
# Maps JokeType (as int) to mood change (as float)
|
# Maps JokeType (as int) to mood change (as float)
|
||||||
@export var joke_mood_mapping: Dictionary
|
var joke_mood_mapping: Dictionary
|
||||||
|
|
||||||
static func get_profile_data(index) -> ProfileData:
|
static func get_profile_data(index) -> ProfileData:
|
||||||
var profiles = [
|
var profiles = [
|
||||||
ProfileData.new(3, -3, -10, 1, 10, { 0: 1, 1: -0.25, 2: 0 }),
|
ProfileData.new(3, -3, -10, 0.1, 0.1, { 0: 1, 1: -0.25, 2: 0 }),
|
||||||
ProfileData.new(3, -3, -10, 1, 10, { 0: 0, 1: 1, 2: -0.25 }),
|
ProfileData.new(3, -3, -10, 0.1, 0.1, { 0: 0, 1: 1, 2: -0.25 }),
|
||||||
ProfileData.new(3, -3, -10, 1, 10, { 0: -0.25, 1: 0, 2: 1 }),
|
ProfileData.new(3, -3, -10, 0.1, 0.1, { 0: -0.25, 1: 0, 2: 1 }),
|
||||||
]
|
]
|
||||||
return profiles[index]
|
return profiles[index]
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
[node name="Crowd" type="Node2D"]
|
[node name="Crowd" type="Node2D"]
|
||||||
position = Vector2(240, 232)
|
position = Vector2(240, 232)
|
||||||
script = ExtResource("1_y7wyj")
|
script = ExtResource("1_y7wyj")
|
||||||
max_persons = null
|
|
||||||
|
|
||||||
[node name="Tables" type="Node" parent="."]
|
[node name="Tables" type="Node" parent="."]
|
||||||
|
|
||||||
|
|
|
@ -27,13 +27,3 @@ shape = SubResource("RectangleShape2D_5rd5b")
|
||||||
|
|
||||||
[node name="Profile" type="Node2D" parent="."]
|
[node name="Profile" type="Node2D" parent="."]
|
||||||
script = ExtResource("2_bsodr")
|
script = ExtResource("2_bsodr")
|
||||||
happy_threshold = 3.0
|
|
||||||
angry_threshold = -3.0
|
|
||||||
lashout_threshold = -10.0
|
|
||||||
happiness_decay = 0.1
|
|
||||||
lashout_decay = 0.1
|
|
||||||
joke_mood_mapping = {
|
|
||||||
0: 1.0,
|
|
||||||
1: 0.0,
|
|
||||||
2: -0.5
|
|
||||||
}
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ visible = false
|
||||||
|
|
||||||
[node name="Crowd" parent="." instance=ExtResource("4_aeh13")]
|
[node name="Crowd" parent="." instance=ExtResource("4_aeh13")]
|
||||||
position = Vector2(0, 0)
|
position = Vector2(0, 0)
|
||||||
|
max_persons = 16
|
||||||
|
|
||||||
[node name="Stage" parent="." instance=ExtResource("5_borcq")]
|
[node name="Stage" parent="." instance=ExtResource("5_borcq")]
|
||||||
z_index = 10
|
z_index = 10
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=8 format=3 uid="uid://cicyfp5xjvvu4"]
|
[gd_scene load_steps=7 format=3 uid="uid://cicyfp5xjvvu4"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scenes/Tim.gd" id="1_g3k2b"]
|
[ext_resource type="Script" path="res://scenes/Tim.gd" id="1_g3k2b"]
|
||||||
[ext_resource type="Texture2D" uid="uid://kq63ictuirhc" path="res://sprites/tim_side.png" id="1_saxit"]
|
[ext_resource type="Texture2D" uid="uid://kq63ictuirhc" path="res://sprites/tim_side.png" id="1_saxit"]
|
||||||
|
@ -8,9 +8,6 @@
|
||||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_3hx6l"]
|
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_3hx6l"]
|
||||||
size = Vector2(600, 200)
|
size = Vector2(600, 200)
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_4pu36"]
|
|
||||||
radius = 33.0151
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wmfel"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wmfel"]
|
||||||
size = Vector2(250, 10000)
|
size = Vector2(250, 10000)
|
||||||
|
|
||||||
|
@ -29,12 +26,6 @@ boundary = NodePath("../Boundary")
|
||||||
tim_sprite = NodePath("Sprite2D")
|
tim_sprite = NodePath("Sprite2D")
|
||||||
transmitter_area = NodePath("Joke Transmitter/Area2D")
|
transmitter_area = NodePath("Joke Transmitter/Area2D")
|
||||||
|
|
||||||
[node name="ThrowPoint" type="Area2D" parent="Tim"]
|
|
||||||
position = Vector2(0, -151)
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tim/ThrowPoint"]
|
|
||||||
shape = SubResource("CircleShape2D_4pu36")
|
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="Tim"]
|
[node name="Sprite2D" type="Sprite2D" parent="Tim"]
|
||||||
z_index = 110
|
z_index = 110
|
||||||
position = Vector2(-12, -142)
|
position = Vector2(-12, -142)
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue