diff --git a/Dota2GSI/Dota2GSI/Nodes/Item.cs b/Dota2GSI/Dota2GSI/Nodes/Item.cs index 59cc6ae..fcd0586 100644 --- a/Dota2GSI/Dota2GSI/Nodes/Item.cs +++ b/Dota2GSI/Dota2GSI/Nodes/Item.cs @@ -13,7 +13,7 @@ public class Item : Node internal Item(string json_data) : base(json_data) { Name = GetString("name"); - ContainsRune = GetString("contains_rune"); + ContainsRune = GetString("contains_rune"); //double_damage, haste, illusion, invisibility, regeneration, arcane, bounty, empty CanCast = GetBool("can_cast"); Cooldown = GetInt("cooldown"); IsPassive = GetBool("passive"); diff --git a/Dota2GSI/Dota2GSI/Nodes/Items.cs b/Dota2GSI/Dota2GSI/Nodes/Items.cs index befa9f1..fccebb3 100644 --- a/Dota2GSI/Dota2GSI/Nodes/Items.cs +++ b/Dota2GSI/Dota2GSI/Nodes/Items.cs @@ -43,10 +43,10 @@ public Item GetInventoryAt(int index) /// public Item GetStashAt(int index) { - if (index > inventory.Count - 1) + if (index > stash.Count - 1) return new Item(""); - return inventory[index]; + return stash[index]; } /// diff --git a/Dota2GSI/Dota2GSI/Properties/AssemblyInfo.cs b/Dota2GSI/Dota2GSI/Properties/AssemblyInfo.cs index 290bcd1..2059a67 100644 --- a/Dota2GSI/Dota2GSI/Properties/AssemblyInfo.cs +++ b/Dota2GSI/Dota2GSI/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyFileVersion("1.0.2.0")] diff --git a/README.md b/README.md index 77392e6..a2317bf 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Manual installation: 1. Create a `GameStateListener` instance by providing a port or passing a specific URI: ```C# -GameStateListener gsl = new GameStateListener(3000); //http://localhost:3000 +GameStateListener gsl = new GameStateListener(3000); //http://localhost:3000/ GameStateListener gsl = new GameStateListener("http://127.0.0.1:81/"); ``` @@ -217,7 +217,7 @@ You will also need to create a custom `gamestate_integration_*.cfg` in `game/dot ``` "Dota 2 Integration Configuration" { - "uri" "http://localhost:4000" + "uri" "http://localhost:4000/" "timeout" "5.0" "buffer" "0.1" "throttle" "0.1" @@ -230,7 +230,6 @@ You will also need to create a custom `gamestate_integration_*.cfg` in `game/dot "hero" "1" "abilities" "1" "items" "1" - "allplayers" "1" } }