small changes

This commit is contained in:
Nimac0 2025-01-14 16:38:04 +01:00
parent 1c281a8526
commit 7b07969489

View File

@ -86,8 +86,11 @@ And no, don't "just start programming because the architecture will solve itself
\begin{frame}[allowframebreaks, fragile]{Spaghetti, an example} \begin{frame}[allowframebreaks, fragile]{Spaghetti, an example}
\begin{itemize} \begin{itemize}
\item Original Ticket:\enquote{attackspeed stat needs reimplementation} \item Original Ticket:\enquote{attackspeed stat needs reimplementation}
\item Step one, make it so Stateffects are not hardcoded in Engine
\framebreak \framebreak
Step one, make it so Stateffects are not hardcoded in Engine
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++} \begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
void chickengame::pickupables::movementSpeedEffect(Entity* player) void chickengame::pickupables::movementSpeedEffect(Entity* player)
{ {
@ -97,7 +100,8 @@ void chickengame::pickupables::movementSpeedEffect(Entity* player)
\framebreak \framebreak
\item Step two \dots uh oh how do i manage a stateffects life cycle? Step two \dots uh oh how do i manage a stateffects life cycle?
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++} \begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
void StatEffectsComponent::update() void StatEffectsComponent::update()
{ {
@ -121,7 +125,7 @@ void StatEffectsComponent::modifyStatDur(Stats stat, int duration, int value)
\framebreak \framebreak
\item Step three \dots oh no why are stat numbers hardcoded in the engine? Step three \dots oh no why are stat types hardcoded in the engine?
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++} \begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
void StatEffectsComponent::modifyStatValue(Stats stat, int modifier) void StatEffectsComponent::modifyStatValue(Stats stat, int modifier)