adding stumps to read tyle in secret woods (foot steps still ned to be
silenced)master
parent
41e29a40ba
commit
6c78c9dbd3
|
@ -143,7 +143,11 @@ namespace stardew_access.Game
|
||||||
{
|
{
|
||||||
toSpeak = getJunimoBundleAt(x, y);
|
toSpeak = getJunimoBundleAt(x, y);
|
||||||
}
|
}
|
||||||
#endregion
|
else if (getStumpsInWoods(x, y) != null)
|
||||||
|
{
|
||||||
|
toSpeak = getStumpsInWoods(x, y);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Narrate toSpeak
|
#region Narrate toSpeak
|
||||||
if (toSpeak != " ")
|
if (toSpeak != " ")
|
||||||
|
@ -177,8 +181,7 @@ namespace stardew_access.Game
|
||||||
{
|
{
|
||||||
if (Game1.currentLocation is not CommunityCenter)
|
if (Game1.currentLocation is not CommunityCenter)
|
||||||
return null;
|
return null;
|
||||||
|
CommunityCenter communityCenter = (Game1.currentLocation as CommunityCenter);
|
||||||
CommunityCenter communityCenter = (Game1.currentLocation as CommunityCenter);
|
|
||||||
|
|
||||||
string? name = (x, y) switch
|
string? name = (x, y) switch
|
||||||
{
|
{
|
||||||
|
@ -747,5 +750,24 @@ namespace stardew_access.Game
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string? getStumpsInWoods(int x, int y)
|
||||||
|
{
|
||||||
|
string strIndex = null;
|
||||||
|
if (Game1.currentLocation is not Woods)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Netcode.NetObjectList<ResourceClump> stumps = ((Woods)Game1.currentLocation).stumps;
|
||||||
|
for (int i = 0; i < stumps.Count; i++)
|
||||||
|
{
|
||||||
|
if (stumps[i].occupiesTile(x, y))
|
||||||
|
{
|
||||||
|
return "large stump";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue