Skip to content

Commit

Permalink
fix: fix call_other and fact scopes (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarthificial authored Sep 28, 2023
1 parent 41cda27 commit 871181f
Show file tree
Hide file tree
Showing 4 changed files with 607 additions and 603 deletions.
2 changes: 1 addition & 1 deletion Assets/DevTools/CSV/CsvConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ BaseEntry previous
_modifications.Clear();

entry.Key = cells.Key();
entry.Scope = InteractionContext.InteractionScope;
entry.Scope = InteractionContext.GlobalScope;

if (cells.Triggers() != "") {
_triggers.AddRange(ParseReferences(cells.Triggers()));
Expand Down
8 changes: 6 additions & 2 deletions Assets/Interactions/Conversation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ private void Update() {
UpdateInteraction(PlayerType.LT);
UpdateInteraction(PlayerType.RT);
UpdateState();
UpdateBlackboard();
UpdateGizmo();
}

private void UpdateBlackboard() {
Blackboard.Set(InteractionContext.IsLTPresent, IsPresent(Players.LT));
Blackboard.Set(InteractionContext.IsRTPresent, IsPresent(Players.RT));
Blackboard.Set(InteractionContext.Initiator, Initiator);
Blackboard.Set(InteractionContext.Listener, Listener);

UpdateGizmo();
}

private void UpdateInteraction(PlayerType type) {
Expand Down Expand Up @@ -158,6 +160,8 @@ public void OnFocusEnter(PlayerController player) {
} else {
Listener = player.Fact;
}

UpdateBlackboard();
}

public void OnFocusExit(PlayerController player) {
Expand Down
34 changes: 17 additions & 17 deletions Assets/Typewriter/Tables/EntryGate.asset

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

Loading

0 comments on commit 871181f

Please sign in to comment.