diff options
| author | david <[email protected]> | 2026-05-07 15:33:15 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-05-07 15:33:15 -0300 |
| commit | 95295e94f2ed3953e84e7f0b3c024941ed3f6862 (patch) | |
| tree | de95fc1349dce2273461a3506380c1894cfa3ca4 /petratc.c | |
| parent | 39ba70b2a232783264ee8b011eea732698d300a8 (diff) | |
| download | petratc-95295e94f2ed3953e84e7f0b3c024941ed3f6862.tar.gz petratc-95295e94f2ed3953e84e7f0b3c024941ed3f6862.zip | |
tweaked the dacay rate
Diffstat (limited to 'petratc.c')
| -rw-r--r-- | petratc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -76,11 +76,11 @@ void setstat(){ int timenow = time(NULL); int newage = timenow - rat.age; - rat.hunger = decay(rat.hunger, newage, 0.005f); - rat.love = decay(rat.love, newage, 0.002f); - rat.fun = decay(rat.fun, newage, 0.006f); - rat.clean = decay(rat.clean, newage, 0.0002f); - rat.health = decay(rat.health, newage, 0.00002f); + rat.hunger = decay(rat.hunger, newage, 0.0008f); //should be like 30 hours now + rat.love = decay(rat.love, newage, 0.00035f); //80 hours + rat.fun = decay(rat.fun, newage, 0.0006f); //short like 25 + rat.clean = decay(rat.clean, newage, 0.0009f); //around 35 or 40 hours + rat.health = decay(rat.health, newage, 0.00008f); //like 2 weeks rat.age = timenow; //thinking about this makes my cortisol spike so i'll just ignore it even more |
