diff options
Diffstat (limited to 'AnodyneArchipelago/ArchipelagoManager.cs')
| -rw-r--r-- | AnodyneArchipelago/ArchipelagoManager.cs | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/AnodyneArchipelago/ArchipelagoManager.cs b/AnodyneArchipelago/ArchipelagoManager.cs index 7c67114..4570c39 100644 --- a/AnodyneArchipelago/ArchipelagoManager.cs +++ b/AnodyneArchipelago/ArchipelagoManager.cs | |||
| @@ -107,6 +107,8 @@ namespace AnodyneArchipelago | |||
| 107 | NetworkItem item = _session.Items.AllItemsReceived[i]; | 107 | NetworkItem item = _session.Items.AllItemsReceived[i]; | 
| 108 | _itemsToCollect.Enqueue(item); | 108 | _itemsToCollect.Enqueue(item); | 
| 109 | } | 109 | } | 
| 110 | |||
| 111 | _itemIndex = _session.Items.AllItemsReceived.Count; | ||
| 110 | } | 112 | } | 
| 111 | 113 | ||
| 112 | if (_itemsToCollect.Count > 0 && (GlobalState.Dialogue == null || GlobalState.Dialogue == "") && !GlobalState.ScreenTransition && Plugin.Player != null && GlobalState.black_overlay.alpha == 0f) | 114 | if (_itemsToCollect.Count > 0 && (GlobalState.Dialogue == null || GlobalState.Dialogue == "") && !GlobalState.ScreenTransition && Plugin.Player != null && GlobalState.black_overlay.alpha == 0f) | 
| @@ -132,7 +134,7 @@ namespace AnodyneArchipelago | |||
| 132 | 134 | ||
| 133 | private void HandleItem(NetworkItem item) | 135 | private void HandleItem(NetworkItem item) | 
| 134 | { | 136 | { | 
| 135 | if (item.Player == _session.ConnectionInfo.Slot) | 137 | if (item.Player == _session.ConnectionInfo.Slot && item.Location >= 0) | 
| 136 | { | 138 | { | 
| 137 | string itemKey = $"ArchipelagoLocation-{item.Location}"; | 139 | string itemKey = $"ArchipelagoLocation-{item.Location}"; | 
| 138 | if (GlobalState.events.GetEvent(itemKey) > 0) | 140 | if (GlobalState.events.GetEvent(itemKey) > 0) | 
| @@ -213,6 +215,14 @@ namespace AnodyneArchipelago | |||
| 213 | cardTreasure.GetTreasure(); | 215 | cardTreasure.GetTreasure(); | 
| 214 | GlobalState.SpawnEntity(cardTreasure); | 216 | GlobalState.SpawnEntity(cardTreasure); | 
| 215 | } | 217 | } | 
| 218 | else if (itemName == "Cardboard Box") | ||
| 219 | { | ||
| 220 | GlobalState.events.SetEvent("ReceivedCardboardBox", 1); | ||
| 221 | } | ||
| 222 | else if (itemName == "Biking Shoes") | ||
| 223 | { | ||
| 224 | GlobalState.events.SetEvent("ReceivedBikingShoes", 1); | ||
| 225 | } | ||
| 216 | 226 | ||
| 217 | string message; | 227 | string message; | 
| 218 | if (item.Player == _session.ConnectionInfo.Slot) | 228 | if (item.Player == _session.ConnectionInfo.Slot) | 
