Changes

Jump to navigation Jump to search
939 bytes added ,  21:18, 19 November 2021
Game code reference for durations
{{Talkheader|Template}}

== Buff duration and calculation reference ==
I was considering adding a game code reference to the Buff Duration Column Header on the [[Cooking#Recipes]] page.

Reference would be the following: Buff duration for Food and Drink appears in <samp>Content\Data\ObjectInformation.xnb</samp> at the 8th index. The given number must be then multiplied by 700 to have the duration in milliseconds. This formula appears in <samp>Buff::Buff</samp> in the game code.

I don't know if modifying the template is the best way to introduce a game code reference, but I'm not sure where else it could be mentioned. It could be added on the [[Buff#Available Buffs]] page instead, but it makes the information more distant. It is also mentioned on [[Modding:Object data#Food & Drink]] but without the reference to the <samp>.exe</samp> function.

-- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 21:17, 19 November 2021 (UTC)
255

edits

Navigation menu