From 5b916b8673ba4cb54bdb6c7443ad21c31723cc02 Mon Sep 17 00:00:00 2001 From: Grantapher Date: Sun, 28 May 2023 15:15:03 -0700 Subject: [PATCH] option to shorten the teleport time as much as much as possible extracted from https://github.com/valheimPlus/ValheimPlus/pull/752 --- README.md | 1 + .../Configurations/Sections/PlayerConfiguration.cs | 1 + ValheimPlus/GameClasses/Player.cs | 13 +++++++++++++ valheim_plus.cfg | 3 +++ vplusconfig.json | 5 +++++ 5 files changed, 23 insertions(+) diff --git a/README.md b/README.md index 852d2ba8..df0dfefa 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ We work together closely to make sure all our features are integrated and workin * Tweak/disable death penalty. * Tweak Rested bonus duration per comfort level. * Disable the use of portals. +* Shorten the portal teleport animation time to the minimum possible. * Modify the Guardian buff duration, cooldown and animation. * Disable tutorials from Valkyrie. * Modify velocity and accuracy of projectiles from bows and javelins including a option to scale it with skill level. diff --git a/ValheimPlus/Configurations/Sections/PlayerConfiguration.cs b/ValheimPlus/Configurations/Sections/PlayerConfiguration.cs index 0d6995e6..7016c796 100644 --- a/ValheimPlus/Configurations/Sections/PlayerConfiguration.cs +++ b/ValheimPlus/Configurations/Sections/PlayerConfiguration.cs @@ -26,5 +26,6 @@ public class PlayerConfiguration : ServerSyncConfig public bool skipTutorials { get; internal set; } = false; public bool disableEncumbered { get; internal set; } = false; public bool autoPickUpWhenEncumbered { get; internal set; } = false; + public bool disableEightSecondTeleport { get; internal set; } = false; } } diff --git a/ValheimPlus/GameClasses/Player.cs b/ValheimPlus/GameClasses/Player.cs index 60c808b7..e42329d1 100644 --- a/ValheimPlus/GameClasses/Player.cs +++ b/ValheimPlus/GameClasses/Player.cs @@ -1205,4 +1205,17 @@ public static IEnumerable Transpile(IEnumerable