muffin v7.38.8
This commit is contained in:
parent
5e2d8f648b
commit
3e10cbbbf2
51 changed files with 2585 additions and 1972 deletions
|
|
@ -9,14 +9,17 @@ internal sealed class ExtraConditionUtils
|
|||
{
|
||||
private readonly IClientState _clientState;
|
||||
|
||||
public ExtraConditionUtils(IClientState clientState)
|
||||
private readonly IObjectTable _objectTable;
|
||||
|
||||
public ExtraConditionUtils(IClientState clientState, IObjectTable objectTable)
|
||||
{
|
||||
_clientState = clientState;
|
||||
_objectTable = objectTable;
|
||||
}
|
||||
|
||||
public bool MatchesExtraCondition(EExtraSkipCondition skipCondition)
|
||||
{
|
||||
Vector3? vector = _clientState.LocalPlayer?.Position;
|
||||
Vector3? vector = _objectTable[0]?.Position;
|
||||
if (vector.HasValue && _clientState.TerritoryType != 0)
|
||||
{
|
||||
return MatchesExtraCondition(skipCondition, vector.Value, _clientState.TerritoryType);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue