diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-10-30 20:06:12 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-10-30 20:06:12 +0800 |
commit | aa6f4410a63cce6ca23df43ea28500d00f8e808c (patch) | |
tree | d705cc08e22e656b537274500df6fd5a7bfffa80 | |
parent | 6ea0089a6ab18f0e9b4628a1e6f739d33f1a3cc6 (diff) | |
download | pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.tar pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.tar.gz pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.tar.bz2 pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.tar.lz pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.tar.xz pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.tar.zst pttbbs-aa6f4410a63cce6ca23df43ea28500d00f8e808c.zip |
chicken.getting_old: ok, let's make it 0.9 for every 24 hrs.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5889 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/chicken.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/pttbbs/mbbsd/chicken.c b/pttbbs/mbbsd/chicken.c index 723f471c..64215e31 100644 --- a/pttbbs/mbbsd/chicken.c +++ b/pttbbs/mbbsd/chicken.c @@ -495,21 +495,7 @@ ch_kill(chicken_t *mychicken) static void ch_getting_old(int *hp, int *weight, int diff, int age) { - float ex = 0.9, care_hours = 12; - - if (age > 180) { - ex = 0.1; - care_hours = 7 * 24; - } else if (age > 70) { - ex = 0.2; - care_hours = 96; - } else if (age > 45) { - ex = 0.5; - care_hours = 48; - } else if (age > 20) { - ex = 0.8; - care_hours = 24; - } + float ex = 0.9, care_hours = 24; diff /= (care_hours * 60); while (diff--) { |