feat: Fenrir forms sense nearby creatures like the Aswid
Every Fenrir form (Wolf, Ulv, Fenring, Cultist) now lights each untamed creature within 100 m with the Aswid's green glow; the human does not. The glow moved out of AswidRace into a shared HunterSenses, which the Aswid now calls too, unchanged. New setting Fenrir - Superhuman Senses / Detection Radius; the light follows the Aswid's Marker Light settings. Compendium line in English, Italian and Russian. Asked for by a friend of MrBiffty.
This commit is contained in:
parent
1c4d1c7b6a
commit
fc5d6b8abc
8 changed files with 111 additions and 70 deletions
|
|
@ -38,6 +38,7 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<float> SpeedBonusPerState;
|
||||
public static ConfigEntry<float> JumpBonusPerState;
|
||||
public static ConfigEntry<float> SunSicknessDuration;
|
||||
public static ConfigEntry<float> SensesRadius;
|
||||
|
||||
// ─── Form buffs (applied while transformed) ───────────────────────────
|
||||
public static ConfigEntry<float> FullFormSpeedBonus;
|
||||
|
|
@ -131,6 +132,10 @@ namespace RacesOfValheim
|
|||
SunSicknessDuration = config.Bind(combat, "Sun Sickness Duration", 60f,
|
||||
new ConfigDescription("Seconds of forced human form after being reverted by sunrise.", new AcceptableValueRange<float>(0f, 300f)));
|
||||
|
||||
const string senses = "Fenrir - Superhuman Senses";
|
||||
SensesRadius = config.Bind(senses, "Detection Radius", 100f,
|
||||
new ConfigDescription("Meters within which nearby creatures glow green while you are in any form. The light itself follows the Aswid's Marker Light settings.", new AcceptableValueRange<float>(10f, 300f)));
|
||||
|
||||
const string buffs = "Fenrir - Form Buffs";
|
||||
BindNote(config, buffs, "Note: these values need a relog to take effect.");
|
||||
FullFormSpeedBonus = config.Bind(buffs, "Full Form Speed Bonus", 1.0f,
|
||||
|
|
|
|||
|
|
@ -164,6 +164,10 @@ namespace RacesOfValheim {
|
|||
}
|
||||
}
|
||||
|
||||
// The hunter's senses, shared with the Aswid: every form has them, the human does not.
|
||||
if (isTransformed) HunterSenses.Tick(FenrirConfig.SensesRadius.Value);
|
||||
else HunterSenses.Clear();
|
||||
|
||||
if (!RaceInput.Allowed) return;
|
||||
|
||||
int state = BossProgressionManager.GetCurrentProgressionState();
|
||||
|
|
@ -412,6 +416,7 @@ namespace RacesOfValheim {
|
|||
private IEnumerator RevertToHumanRoutine()
|
||||
{
|
||||
isTransformingSequence = true;
|
||||
HunterSenses.Clear();
|
||||
|
||||
if (currentTransformation != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue