[DiscordArchive] Thank you for the info Foe.
[DiscordArchive] Thank you for the info Foe.
Archived author: Foe • Posted: 2024-05-18T16:43:47.220000+00:00
Original source
It's what he wants to do for now, so
Archived author: Sylian • Posted: 2024-05-18T16:44:44.195000+00:00
Original source
I will look around the source a bit more to see if I missed something
Archived author: Foe • Posted: 2024-05-18T16:47:34.775000+00:00
Original source
Just look at what's called in the different function calls
Archived author: Foe • Posted: 2024-05-18T16:49:35.719000+00:00
Original source
Check what happens in GetTotalStatValue
Archived author: Foe • Posted: 2024-05-18T16:49:52.792000+00:00
Original source
That'd be where you'd want to apply your addition
Archived author: Foe • Posted: 2024-05-18T16:53:48.450000+00:00
Original source
You want to add some form of construct to the player class to hold the additional stats per player. Then in GetTotalStatValue read that and apply it to the return value. Then you want a function to modify that array/map/vector/whatever in the player class so whenever the GetTotalStatValue function gets called it applies the modifier.
![[Image: image.png?ex=690c29e0&is=690ad860&hm=b87...b6fe1d784&]](https://cdn.discordapp.com/attachments/284323424032129024/1241433590093582387/image.png?ex=690c29e0&is=690ad860&hm=b872637b6871f056a161d0192e3e97ae192fb04d60d2aca483bbad1b6fe1d784&)
Archived author: Sylian • Posted: 2024-05-18T16:53:52.681000+00:00
Original source
This is what the UpdateAllStats loop prints for each index in it.
That matches
![[Image: image.png?ex=690c29e0&is=690ad860&hm=b87...b6fe1d784&]](https://cdn.discordapp.com/attachments/284323424032129024/1241433590093582387/image.png?ex=690c29e0&is=690ad860&hm=b872637b6871f056a161d0192e3e97ae192fb04d60d2aca483bbad1b6fe1d784&)
Archived author: Sylian • Posted: 2024-05-18T16:54:35.923000+00:00
Original source
The first one is what GetTotalValue returns, and the next one is the stat id