Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

If I may, the current weapon system has some maintainability issues. Code-wise at least. This battle test has 5 weapons total: The sword, the knife, the twigs, the wooden sticks, raw bones and technically bare handed too, so kind of 6. Each of these weapons are checked individually in 25 different places throughout the script, and each additional weapon actually adds more checks. If you add a new weapon, and forget any of these places, it'll create a bug that might be rare, and hard to track down. 

I'd be willing to lend a hand in refactoring the code to be more maintainable if you'd like? The idea would be to condense the number of checks by abstracting them, so instead of checking each weapon individually, it checks a list of weapons instead. You can message me on discord at 'rachel02048' to talk further if you want.

Thank you very much for your input!

I have now centralized all the code for weapon selection in order to add weapons in the future without problems.

Regarding the knife, I'm aware of the issue of not being able to display the selected weapon even if the knife is still present after all weapons have been consumed, as this was deliberately designed by me.

Thank you very much for your input again!

I'm glad to hear it! I look forward to the next update and wish you good luck! Implementing an RPG system can be a big task.