Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 1 | die() |
| 2 | ===== |
| 3 | |
| 4 | FUNKTION |
| 5 | -------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 6 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 7 | public varargs void die(int poisondeath,int extern); |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 8 | |
| 9 | DEFINIERT IN |
| 10 | ------------ |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 11 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 12 | /std/living/life.c |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 13 | |
| 14 | ARGUMENTE |
| 15 | --------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 16 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 17 | poisondeath |
| 18 | Dieses Flag sollte bei einem Gifttod (P_POISON) gesetzt sein. |
| 19 | extern |
| 20 | Intern. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 21 | |
| 22 | BESCHREIBUNG |
| 23 | ------------ |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 24 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 25 | Das Lebewesen stirbt, meist automatisch von do_damage() ausgeloest, wenn |
| 26 | 0 HP unterschritten werden. In diesem Fall wird der Kampf beendet, Gift, |
| 27 | Alkohol, Trink- und Esswerte, Blindheit, Taubheit u.s.w. auf Null |
| 28 | gesetzt oder geloescht. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 29 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 30 | Es wird automatisch eine Leiche (siehe auch P_CORPSE, P_NOCORPSE) nebst |
| 31 | Todesmeldungen (siehe auch P_DIE_MSG) erzeugt, und fuer Spieler werden |
| 32 | Killstupse vergeben, sofern notwendig. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 33 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 34 | Ueber den Hook P_TMP_DIE_HOOK kann man jedoch auf den Automatismus |
| 35 | Einfluss nehmen, z.B. koennte ein temporaerer Todesbann-Zauber das |
| 36 | Sterben fuer kurze Zeit verhindern. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 37 | |
| 38 | RUeCKGABEWERT |
| 39 | ------------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 40 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 41 | keiner |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 42 | |
| 43 | BEMERKUNGEN |
| 44 | ----------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 45 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 46 | Diese Funktion sollte nur selten direkt verwendet werden. Meist ist der |
| 47 | uebliche Weg ueber Defend() -> do_damage() -> die() die logisch bessere |
| 48 | und balancetechnisch guenstigere Loesung. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 49 | |
| 50 | SIEHE AUCH |
| 51 | ---------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 52 | |
Bugfix | 75289ab | 2019-03-17 20:11:08 +0100 | [diff] [blame^] | 53 | :doc:`Defend`, :doc:`do_damage`, :doc:`../props/P_POISON`, |
| 54 | :doc:`../props/P_TMP_DIE_HOOK`, :doc:`../props/P_DEADS`, |
| 55 | :doc:`../props/P_KILL_NAME`, :doc:`../props/P_KILL_MSG`, |
| 56 | :doc:`../props/P_MURDER_MSG`, :doc:`../props/P_DIE_MSG`, |
| 57 | :doc:`../props/P_ZAP_MSG`, :doc:`../props/P_ENEMY_DEATH_SEQUENCE`, |
| 58 | :doc:`../props/P_CORPSE`, :doc:`../props/P_NOCORPSE`, /std/corpse.c |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 59 | |
| 60 | |
| 61 | Last modified: Mon May 14 16:20:34 2001 by Patryn |
| 62 | |