Hogwarts Legacy
0 of 0

File information

Last updated

Original upload

Created by

WinterElfeas

Uploaded by

WinterElfeas

Virus scan

Safe to use

Tags for this mod

About this mod

Eat, drink and rest like your life depends on it

Permissions and credits
What it does
Hello,

This mod makes food, drink, and your common room bed useful.

  • Disables health regen (as a base necessity for the mod)
  • For every day passed in the game, at the next Loading (fast travel, load save, go in / out of dungeons ...) or Wait:
       
        Hunger
: your life will be reduce by certain % (cumulative for each day that pass), and at critical level you cannot run
        Thirst: your ancient magic damage is reduced (cumulative for each day that pass), and at critical level cannot cast ancient magic finisher
        Tiredness: at critical level (only) casting Protego reduce your health   

  • A custom UI, indicating the number of days past:

        Green means zero debuff,
        Orange means debuff (but not critical debuff),
        Red means critical debuff   

  • Eat (get back health and movement) or Drink (get back ancient magic damage and use) or Rest (no more damage using protego) to reset the last day and remove the debuffs

Other mods recommendations


I strongly advise my Harder Modes with the optional file to reduce how many potions you can carry and the one that increase the cost of making potions.

Even in hard mode, we were getting already a ton of health potions it was ridiculous and we were never stressed out to run out. I would say it is a near requirement for this Eat and Drink mod to make complete sense.

And my other mod to display Date / Time (longer wait optional file) so you can have an idea of time / days that pass by.


Installation

Follow those steps carefully.

  • Download the latest UE4SS (Xinput)
  • Extract its content next to the executable "~\Hogwarts Legacy\Phoenix\Binaries\Win64\"

        > Should look like that (edit: minus imgui.ini and ue4ss.logs that generate after. You do not need all original files from UE4SS zip)
        > New in UE4SS 2.5: Take also the Mods folder, the default BPModLoaderMod of UE4SS is now required

  • Open the Mods\mods.txt file, and make sure BPModLoaderMod = 1
  • Extract this mod ZIPs (you need both main files) to the game root folder "~\Hogwarts Legacy"


Limitations

Known limitations:

  • Would like the MaxHealth to be reduce "permanently" like even when using potion, but not sure it is possible.
  • Losing health during Protego will cause a very slight hitch, for now we have no workaround for this as Health Bar HUD is not being updated if we do async to not cause a hitch

Custom Changes

You can adapt a bit the values to your liking at the beginning of the main.lua file:

-- ----------------
-- Trackers
-- ----------------
local tirednessMax = 100  -- Dont change
local hungerMax = 100  -- Dont change
local thirstMax = 100  -- Dont change
local tirednessCurrent = 100  -- Dont change
local hungerCurrent = 100  -- Dont change
local thirstCurrent = 100  -- Dont change
local hungerPerDay = 15  -- Update if you want to reach critical level more or less fast
local thirstPerDay = 30  -- Update if you want to reach critical level more or less fast
local tirednessPerDay = 30  -- Update if you want to reach critical level more or less fast
local hungerPenaltyPercent =  15  -- Percentage of health reduced per day without eating
local thirstPenaltyPercent = 20   -- Percentage of Ancient Magic damage reduced per day without drinking
local hungerCriticalThreshold = 41  -- Critical level below which you cannot run anymore
local thirstCriticalThreshold = 60  -- Critical level below which you cannot use Ancient Magic anymore
local tirednessCriticalThreshold = 30 -- Critical level below which you lose life using Protego


Changelog
1.6f

  • Fixed sprint was still working with critical hunger debuff

1.6c

  • Fix text position with Smaller UI mod

1.6b

  • Changed ChunkId from 111 to 298
  • Small fix case need percentage was above 100

1.6a

  • Made mod compatible with UE4SS 2.5 blueprint mod loader

1.6

  • Fixed multiple hooks
  • Fixed removed debug keyboard keys (X and Z) used for Unreal Engine
  • UI now fades nicely
  • UI now displays at every wait
1.5

  • Added custom UI for needs level (wanted to add a nice fade animation but sadly it is bugged)

1.4

  • Added notion of Resting, after 3 in-game days without resting next to your common room bed, you will suffer damage every time you cast Protego

1.3

  • Separated notion of Hunger and Thirst
  • Hunger lower life like before at each load / wait + now at critical level you cannot run anymore
  • Thirst lower Ancient Magic damage + at critical level cannot use Ancient Magic finisher anymore
  • Small UI pop-up info about Hunger and Thirst (Warning: can overlap the notification of my Date Time mod)

1.2

  • Removed my last eat / drink file from mod zip (sorry)
  • Added drinking Tea
  • Maximum health lowered should not kill you anymore

1.1

  • Fix bug where script would get an initial Max Player Health of only 100

1.0

  • Base version

Special thanks to Narknon / Luffy / DarkStar / Doudoulix / Rysel (and more) from the Hogwards Modding Discord for their invaluable help.