joshuafielding / uigp

cap 3104 group project
1 stars 2 forks source link

critical hits against enemies #2

Closed joshuafielding closed 5 months ago

joshuafielding commented 5 months ago

add a critical hit mechanic

joshuafielding commented 5 months ago

created a new function that will calculate whether a critical hit should occur or not. if a crit is landed playerdamage is saved to a different variable and then multiplied by 3.5. then it is returned to the saved value.