/// <inheritdoc />
        public void PlayerTalksToNpc(Player player, NonPlayerCharacter npc, NpcTalkEventArgs eventArgs)
        {
            if (npc.Definition.Number != ResetNpcNumber)
            {
                return;
            }

            eventArgs.HasBeenHandled = true;
            var resetAction = new ResetCharacterAction(player, npc);

            resetAction.ResetCharacter();
        }
Exemple #2
0
        /// <inheritdoc />
        public void HandleCommand(Player player, string command)
        {
            var resetAction = new ResetCharacterAction(player);

            resetAction.ResetCharacter();
        }