Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Assets/_Project/Prefabs/Pet/Pet_Angel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a313c8d962bc67d4594340dda94bec83, type: 3}
m_Name:
m_EditorClassIdentifier:
_config: {fileID: 0}
_config: {fileID: 11400000, guid: 71ae029310f9d8449965a9e094ca2ed9, type: 2}
_personality: {fileID: 11400000, guid: 1ecede15733b42244a1305f7645463bd, type: 2}
_movementController: {fileID: 9100000, guid: ba46f117e79c2504888c585f53d1ecf8, type: 2}
_sideFramesFaceLeft: 1
Expand All @@ -450,6 +450,7 @@ MonoBehaviour:
_useDetachedVisual: 1
- _animatorStateName: Interact_Write
_useDetachedVisual: 1
_behaviorConfig: {fileID: 11400000, guid: 1db41e560f4a41cc981bf1daa52bed43, type: 2}
--- !u!70 &5479558928138216786
CapsuleCollider2D:
m_ObjectHideFlags: 0
Expand Down
3 changes: 2 additions & 1 deletion Assets/_Project/Prefabs/Pet/Pet_Devil.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a313c8d962bc67d4594340dda94bec83, type: 3}
m_Name:
m_EditorClassIdentifier:
_config: {fileID: 0}
_config: {fileID: 11400000, guid: 71ae029310f9d8449965a9e094ca2ed9, type: 2}
_personality: {fileID: 11400000, guid: 844d776109915fc4092eeee43b3d825a, type: 2}
_movementController: {fileID: 9100000, guid: 49dff8841cae4cc7ae3247d5c623213b, type: 2}
_sideFramesFaceLeft: 1
Expand All @@ -297,6 +297,7 @@ MonoBehaviour:
_interactionVisualStrategy:
_useDetachedVisualByDefault: 0
_rules: []
_behaviorConfig: {fileID: 11400000, guid: 06638d89187f4d659bf57dad62029624, type: 2}
--- !u!70 &8393034162494385283
CapsuleCollider2D:
m_ObjectHideFlags: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ MonoBehaviour:
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6660e5e8acf89ec42ad4b4f9235e3a96, type: 3}
m_Name: PersonalityMatrix_Angel
m_EditorClassIdentifier:
Kindness: 0.7
Evilness: -0.3
Calmness: 0.3
Bravery: 0.2
Shyness: -0.1
Integrity: 0.5
Curiosity: 0.4
m_EditorClassIdentifier:
Kindness: 0.68
Evilness: -0.84
Calmness: 0.8
Bravery: 0.04
Shyness: -0.24
Integrity: 0.76
Curiosity: -0.08
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ MonoBehaviour:
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6660e5e8acf89ec42ad4b4f9235e3a96, type: 3}
m_Name: PersonalityMatrix_Devil
m_EditorClassIdentifier:
Kindness: -0.2
Evilness: 0.6
Calmness: -0.1
Bravery: 0.4
Shyness: 0.1
Integrity: -0.3
Curiosity: 0.5
m_EditorClassIdentifier:
Kindness: 0.12
Evilness: 0.44
Calmness: 0.36
Bravery: 0.56
Shyness: 0.28
Integrity: -0.32
Curiosity: 0.64
8 changes: 8 additions & 0 deletions Assets/_Project/ScriptableObjects/PetConfig.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 126 additions & 0 deletions Assets/_Project/ScriptableObjects/PetConfig/BehaviorConfig_Angel.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ed572c5aa5a44937ae33760d2600d779, type: 3}
m_Name: BehaviorConfig_Angel
m_EditorClassIdentifier:
Behaviors:
- BehaviorId: idle
Label: "待机"
BaseWeight: 15
Category: 0
PersonalityTags: []
PreferredEnergy: 50
EnergyDelta: 0
MoodDelta: 0
CooldownSeconds: 0
Tags: 0
BindingInteractionType: 0
OverrideDurationSeconds: 0
- BehaviorId: sleep
Label: "睡觉"
BaseWeight: 10
Category: 1
PersonalityTags:
- Trait: 2
Direction: 1
PreferredEnergy: 20
EnergyDelta: 25
MoodDelta: 1
CooldownSeconds: 300
Tags: 0
BindingInteractionType: 5
OverrideDurationSeconds: 30
- BehaviorId: water_flowers
Label: "浇花"
BaseWeight: 20
Category: 3
PersonalityTags:
- Trait: 0
Direction: 1
- Trait: 2
Direction: 1
PreferredEnergy: 70
EnergyDelta: -3
MoodDelta: 1
CooldownSeconds: 180
Tags: 1
BindingInteractionType: 13
OverrideDurationSeconds: 0
- BehaviorId: read_books
Label: "看书"
BaseWeight: 20
Category: 2
PersonalityTags:
- Trait: 2
Direction: 1
- Trait: 5
Direction: 1
PreferredEnergy: 55
EnergyDelta: -1
MoodDelta: 1
CooldownSeconds: 90
Tags: 0
BindingInteractionType: 6
OverrideDurationSeconds: 0
- BehaviorId: play_harp
Label: "弹琴"
BaseWeight: 15
Category: 2
PersonalityTags:
- Trait: 2
Direction: 1
- Trait: 0
Direction: 1
PreferredEnergy: 60
EnergyDelta: -2
MoodDelta: 2
CooldownSeconds: 180
Tags: 0
BindingInteractionType: 9
OverrideDurationSeconds: 0
- BehaviorId: journaling
Label: "写字"
BaseWeight: 15
Category: 2
PersonalityTags:
- Trait: 5
Direction: 1
- Trait: 2
Direction: 1
PreferredEnergy: 50
EnergyDelta: -1
MoodDelta: 1
CooldownSeconds: 120
Tags: 0
BindingInteractionType: 1
OverrideDurationSeconds: 0
- BehaviorId: door_gaze
Label: "门前驻足"
BaseWeight: 5
Category: 4
PersonalityTags:
- Trait: 6
Direction: 1
- Trait: 3
Direction: 1
- Trait: 4
Direction: -1
PreferredEnergy: 75
EnergyDelta: -4
MoodDelta: 0
CooldownSeconds: 240
Tags: 1
BindingInteractionType: 3
OverrideDurationSeconds: 0
IdleMinSeconds: 3
IdleMaxSeconds: 8
TransitionPauseSeconds: 2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ed572c5aa5a44937ae33760d2600d779, type: 3}
m_Name: BehaviorConfig_Devil
m_EditorClassIdentifier:
Behaviors:
- BehaviorId: idle
Label: "待机"
BaseWeight: 20
Category: 0
PersonalityTags: []
PreferredEnergy: 50
EnergyDelta: 0
MoodDelta: 0
CooldownSeconds: 0
Tags: 0
BindingInteractionType: 0
OverrideDurationSeconds: 0
- BehaviorId: sleep
Label: "睡觉"
BaseWeight: 15
Category: 1
PersonalityTags:
- Trait: 2
Direction: 1
PreferredEnergy: 20
EnergyDelta: 25
MoodDelta: 1
CooldownSeconds: 300
Tags: 0
BindingInteractionType: 5
OverrideDurationSeconds: 30
- BehaviorId: play_games
Label: "玩掌机"
BaseWeight: 30
Category: 3
PersonalityTags:
- Trait: 1
Direction: 1
- Trait: 6
Direction: 1
PreferredEnergy: 80
EnergyDelta: -4
MoodDelta: 2
CooldownSeconds: 150
Tags: 1
BindingInteractionType: 19
OverrideDurationSeconds: 0
- BehaviorId: paint
Label: "画画"
BaseWeight: 30
Category: 2
PersonalityTags:
- Trait: 6
Direction: 1
- Trait: 1
Direction: 1
PreferredEnergy: 65
EnergyDelta: -2
MoodDelta: 2
CooldownSeconds: 120
Tags: 0
BindingInteractionType: 11
OverrideDurationSeconds: 0
- BehaviorId: door_gaze
Label: "门前驻足"
BaseWeight: 5
Category: 4
PersonalityTags:
- Trait: 6
Direction: 1
- Trait: 3
Direction: 1
- Trait: 4
Direction: -1
PreferredEnergy: 75
EnergyDelta: -4
MoodDelta: 0
CooldownSeconds: 240
Tags: 1
BindingInteractionType: 3
OverrideDurationSeconds: 0
IdleMinSeconds: 3
IdleMaxSeconds: 8
TransitionPauseSeconds: 2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions Assets/_Project/ScriptableObjects/PetStateValueConfig.asset
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,25 @@ MonoBehaviour:
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b1fa3a54ddfbc7c49beb25460f5dd1d5, type: 3}
m_Name: PetStateValueConfig
m_EditorClassIdentifier:
InitialMood: 60
m_EditorClassIdentifier:
InitialMood: 50
InitialEnergy: 100
InitialSatiety: 75
AwakeEnergyDrainMinutesPerPoint: 3
MoodNeutralReturnIntervalSeconds: 300
MoodNeutralTarget: 50
SatietyDecayPerSecond: 0.005
ForcedSleepEnergyThreshold: 5
SleepExcludedAboveEnergy: 70
ActiveBehaviorMinEnergy: 10
MoveEnergyCost: 1
MoveEnergyCostMinDistance: 1.5
ForceWakeMoodPenalty: 30
WorkStateTimeoutSeconds: 30
SleepEnterEnergyThreshold: 25
SleepExitEnergyThreshold: 70
DaytimeBedSeekEnergyThreshold: 15
NighttimeBedSeekEnergyThreshold: 40
LeisureSeekMoodThreshold: 85
NightHourStart: 22
NightHourEnd: 6
AwakeEnergyDecayPerSecond: 0.005
SleepingEnergyRecoveryPerSecond: 0.1
MoodRecoveryPerSecond: 0.005
SatietyDecayPerSecond: 0.005
LowSatietyMoodPenaltyPerSecond: 0.3
LowEnergyMoodPenaltyPerSecond: 0.3
MoodRecoveryPenaltyFactor: 0.2
ForceWakeMoodPenalty: 30
WorkStateTimeoutSeconds: 30
Loading
Loading