Search the Community
Showing results for tags 'bug or feature'.
-
I posted this as a possible bug report here However, if this turns out to not be a bug but an intended 'feature' (as I am now suspecting), I'm trying to mod this to undo the change so that drinking manually from water bottles, bowls, mugs, etc. is possible even when not Thirsty (just like you can drink Orange Soda regardless of thirst). My first instinct was to make a mod that added the 'Drink' interaction to Water Bottle item (notably missing in the original code compared to that of Orange Soda), but this didn't work. I took a look in the code and found that making a mod containint a modified version of 'ISInventoryPaneContextMenu.lua', edited to remove the thirst check - as below - fixed the issue: if waterContainer then local drinkOption = context:addOption(getText("ContextMenu_Drink"), items, nil) local subMenuDrink = context:getNew(context) context:addSubMenu(drinkOption, subMenuDrink) subMenuDrink:addOption(getText("ContextMenu_Eat_All"), items, ISInventoryPaneContextMenu.onDrink, waterContainer, 1, player) subMenuDrink:addOption(getText("ContextMenu_Eat_Half"), items, ISInventoryPaneContextMenu.onDrink, waterContainer, 0.5, player) subMenuDrink:addOption(getText("ContextMenu_Eat_Quarter"), items, ISInventoryPaneContextMenu.onDrink, waterContainer, 0.25, player) end Obviously, though, modding existing files isn't the best way to go, but creating a standalone lua file to implement this fix is way beyond my understanding. I've been able to do this sort of thing before with simpler lua, as with professions, traits, items, etc. but 'ISInventoryPaneContextMenu.lua' is far more complicated than I'm used to trying to deal with! If anyone can point me in the right direction of what I need to do, I'd really appreciate it, as it's driving me nuts not being able to simply drink from a bottle of water at will.
- 5 replies
-
- bug or feature
- drink water
-
(and 1 more)
Tagged with: