protected override void ClientItemUseStart(ClientItemData data) { var item = data.Item; var playerCharacter = Client.Characters.CurrentPlayerCharacter; if (ItemFuelRefillSystem.Instance.SharedGetCurrentActionState(playerCharacter) != null) { return; } ClientTryRefill(item); if (ItemFuelRefillSystem.Instance.SharedGetCurrentActionState(playerCharacter) != null) { return; } var inputKey = ClientInputManager.GetKeyForAbstractButton( WrappedButton <GameButton> .GetWrappedButton(GameButton.HeadEquipmentLightToggle)); var key = inputKey != InputKey.None ? inputKey.ToString() : "<" + TitleButtonNotSet + ">"; NotificationSystem.ClientShowNotification( string.Format(NotificationPressKeyToActivate, key), icon: this.Icon); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskSortItemsContainer.Require) .Add(TaskRun.Require) .Add(TaskCompleteCompletionistAnyEntry.Require); prerequisites .Add <QuestUnlockAndBuildWorkbench>(); hints .Add(() => { var keyForButton = ClientInputManager.GetMappingForAbstractButton( WrappedButton <GameButton> .GetWrappedButton(GameButton.ContainerSort)); return(string.Format(HintSortInventory, InputKeyNameHelper.GetKeyText(keyForButton.PrimaryKey), InputKeyNameHelper.GetKeyText(keyForButton.SecondaryKey))); }) .Add(HintSprint) .Add(HintCompletionist); }