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