tomasesquivelgc / JavaScript-game-practice

This repo is a personal project in which I will challenge myself to build a simple game using React & Redux
0 stars 0 forks source link

Create character stats slice #4

Closed tomasesquivelgc closed 5 months ago

tomasesquivelgc commented 6 months ago

Create a slice to store and change stats of clothes. stats should be added (for example is top has +7 charisma and bottom has +3 charisma then total character charisma should be 10)

tomasesquivelgc commented 6 months ago

Created reducer inside clothes slice to hold the combined value of the clothes stats. Created stats component to show the value of combined stats state.

-- When the page is first loaded the intial state is 0 in all areas. this is not intended and needs fixing

tomasesquivelgc commented 5 months ago

Created function to pull data from local storage. if there is none then initial data is hard coded. Furthermore, combined stats is calculated when first opening the app.