Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 1 | AddExp() |
| 2 | ======== |
| 3 | |
| 4 | FUNKTION |
| 5 | -------- |
| 6 | :: |
| 7 | |
| 8 | int AddExp(int e) |
| 9 | |
| 10 | DEFINIERT IN |
| 11 | ------------ |
| 12 | :: |
| 13 | |
| 14 | /std/living/life.c |
| 15 | |
| 16 | ARGUMENTE |
| 17 | --------- |
| 18 | :: |
| 19 | |
| 20 | int e - Anzahl der hinzuzufuegenden (abzuziehenden) XP |
| 21 | |
| 22 | BESCHREIBUNG |
| 23 | ------------ |
| 24 | :: |
| 25 | |
| 26 | Dem Living werden e XP auf seine bisherigen P_XP addiert. |
| 27 | |
| 28 | Falls es sich um einen Spieler mit P_KILLS>0 handelt und |
| 29 | e positiv ist, bekommt der Spieler keine XP gutgeschrieben. |
| 30 | |
| 31 | P_LAST_XP wird aktualisiert. |
| 32 | |
| 33 | BEMERKUNG |
| 34 | --------- |
| 35 | :: |
| 36 | |
| 37 | - positive und negative Werte sind moeglich |
| 38 | - P_XP wird nicht <0 gesetzt. |
| 39 | |
| 40 | RUECKGABEWERT |
| 41 | ------------- |
| 42 | :: |
| 43 | |
| 44 | int - neuer XP-Wert |
| 45 | |
| 46 | SIEHE AUCH |
| 47 | ---------- |
| 48 | :: |
| 49 | |
| 50 | Funktionen: do_damage(), DistributeExp() |
| 51 | Properties: P_XP, P_LAST_XP |
| 52 | Sonstiges: P_NO_XP, P_NO_SCORE |
| 53 | create_default_npc() |
| 54 | |
| 55 | 14.Feb 2007 Gloinson |
| 56 | |