diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-13 08:15:39 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-04-05 21:20:35 +0200 |
commit | 554e54afebf3eed9d6293a7891c66320af2586a0 (patch) | |
tree | 8da18e38a2b2860c8215ae0d4ba67ac58ab44b39 /src/map/atcommand.c | |
parent | b996ad73974b282a15db217fcbac5f284be3fdd5 (diff) | |
download | hercules-554e54afebf3eed9d6293a7891c66320af2586a0.tar.gz hercules-554e54afebf3eed9d6293a7891c66320af2586a0.tar.bz2 hercules-554e54afebf3eed9d6293a7891c66320af2586a0.tar.xz hercules-554e54afebf3eed9d6293a7891c66320af2586a0.zip |
Add enum for pet hunger levels and use its constants
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d3368c3b0..9fc552f5f 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2774,7 +2774,7 @@ ACMD(makeegg) sd->status.account_id, sd->status.char_id, pet->db[pet_id].class_, mob->db(pet->db[pet_id].class_)->lv, pet->db[pet_id].EggID, 0, (short)pet->db[pet_id].intimate, - 100, 0, 1, pet->db[pet_id].jname); + PET_HUNGER_STUFFED, 0, 1, pet->db[pet_id].jname); } else { clif->message(fd, msg_fd(fd,180)); // The monster/egg name/id doesn't exist. return false; @@ -2852,7 +2852,7 @@ ACMD(pethungry) clif->message(fd, msg_fd(fd,184)); // Sorry, but you have no pet. return false; } - if (hungry < 0 || hungry > 100) { + if (hungry < PET_HUNGER_STARVING || hungry > PET_HUNGER_STUFFED) { clif->message(fd, msg_fd(fd,37)); // An invalid number was specified. return false; } |