Skip to content

Commit

Permalink
Fixed Stash Bug, Readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpup committed Feb 11, 2016
1 parent 74d240b commit 41804cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dota2GSI/Dota2GSI/Nodes/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions Dota2GSI/Dota2GSI/Nodes/Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public Item GetInventoryAt(int index)
/// <returns></returns>
public Item GetStashAt(int index)
{
if (index > inventory.Count - 1)
if (index > stash.Count - 1)
return new Item("");

return inventory[index];
return stash[index];
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Dota2GSI/Dota2GSI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/");
```

Expand Down Expand Up @@ -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"
Expand All @@ -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"
}
}
Expand Down

0 comments on commit 41804cf

Please sign in to comment.