feat: let villagers witness and trust the player restock
This commit is contained in:
@@ -46,7 +46,10 @@ static func from_dictionary(record_data: Dictionary) -> RelationshipStateRecord:
|
||||
var familiarity := float(record_data["familiarity"])
|
||||
var trust := float(record_data["trust"])
|
||||
var cause_event_id := int(record_data["last_trust_cause_event_id"])
|
||||
if observer_id < 0 or subject_id < 0 or observer_id == subject_id:
|
||||
var is_player_subject := subject_id == SimulationIds.PLAYER_ACTOR_ID
|
||||
if observer_id < 0 or observer_id == subject_id:
|
||||
return null
|
||||
if not is_player_subject and subject_id < 0:
|
||||
return null
|
||||
if familiarity < 0.0 or familiarity > 1.0 or trust < 0.0 or trust > 1.0:
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user