diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-28 01:32:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-28 01:32:47 -0300 |
commit | 3f0364f9cb51cb864e55afa610c0c3eb072c531d (patch) | |
tree | 1fa5a47138c9e4fffbf12615de1e82612d22a9a0 /src | |
parent | 517290161699e4092989c6c892710cc63fd3e1aa (diff) | |
download | evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.tar.gz evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.tar.bz2 evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.tar.xz evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.zip |
Tweak homstatus() to lie if Homunculus is dead
Diffstat (limited to 'src')
-rw-r--r-- | src/emap/script_buildins.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index b801305..b897700 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -2822,7 +2822,11 @@ BUILDIN(homstatus) return true; // Return the status (0 - active; 1 - resting ; 2 - mission) - script_pushint(st,sd->hd->homunculus.vaporize); + // BUT Dead homunculus is not active (send RESTING instead) + if (!homun_alive(sd->hd)) + script_pushint(st,1); + else + script_pushint(st,sd->hd->homunculus.vaporize); return true; } |