John Westhoff

Results 12 comments of John Westhoff

In the past I don't think pull requests made before October counted, so I would just wait until then to make the pull request. You should be able to make...

Yes, it should return in the range `[0, max]`.

> rng_rand should be sure to account for the limitations of rand in C. Namely, if the argument to rng_rand is greater than RAND_MAX but less than INT_MAX, it should...

Have enemies drop items occasionally. Luck increases the chances of landing on the rare drop table.

Right now we have user displayed strings throughout the entire codebase, such as [here](https://github.com/a3qz/hag/blob/9710a08032838493569e9e06e53b1b37e2fcccf6/src/logic/enemy_rulebook.c#L202). I think it would be better for that line to be changed to ``` add_action(FT_HAG_SUMMON_SNEK); ```...

Panning the camera wouldn't be hard. What would need to happen besides separating the rendering from the player's coordinates though includes: 1. Fixing the key to be what is visible,...

Yeah, we should have a context concept. It'll go nicely with restructuring the main function as well. We'd have to make some design decisions though, like whether moving in a...

The key logic hurts my brain and makes me sad. We should rewrite it.

We should also rewrite the visibility system. Right now it just colors map tiles, which isn't ideal.

https://github.com/a3qz/hag/blob/7eaeaf5c0a01260ce606f40aaac880bbee5ddbcf/src/logic/item.c#L102-L195 Basically the game has Strength, Dexterity, Intelligence, Luck, Health, and Experience potions. Each potion can be either positive or negative. For example, you could drink a potion that adds...