private void EnterInteractionArea(AreaBase area) { if (area.GetData("thMod_AddsFlag", out TreasureFlags flag)) { _interactionFlag = flag; } }
private void PlayerEnterBenchArea(AreaBase area) { if (area.GetData("rbMod_Id", out Guid benchId)) { CurBench = BenchManager.GetBench(benchId); CanUseBench = CurBench == null ? false : (CurBench.Owner == Character.Unknown || CurBench.Owner == Util.GetCharacterFromModel(Game.Player.Character.Model.Hash)); } }
private void EnterVisualClueArea(AreaBase area) { if (area.GetData("thMod_BlipIndex", out int blipIdx) && _areaClueBlips[blipIdx] != null) { _areaClueBlips[blipIdx].Alpha = 0; } _helpTextIsClue = true; _helpTextHideAt = Game.GameTime + HelpTextTime; }
private void LeaveVisualClueArea(AreaBase area) { if (area.GetData("thMod_BlipIndex", out int blipIdx) && _areaClueBlips[blipIdx] != null) { _areaClueBlips[blipIdx].Alpha = 255; } if (_helpTextHideAt > 0 && _helpTextIsClue) { _helpTextHideAt = 0; } }