MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SetAttr() |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 2 | ********* |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 4 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 5 | FUNKTION |
| 6 | ======== |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 7 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 8 | public int SetAttr(string attr, int val) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 9 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 10 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 11 | DEFINIERT IN |
| 12 | ============ |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 13 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 14 | /std/living/attributes.c |
| 15 | |
| 16 | |
| 17 | ARGUMENTE |
| 18 | ========= |
| 19 | |
| 20 | attr - zu setzendes Attribut |
| 21 | val - Wert |
| 22 | |
| 23 | |
| 24 | BESCHREIBUNG |
| 25 | ============ |
| 26 | |
| 27 | Filtert den Wert durch _filterattr(). Dadurch werden STR, INT, CON, DEX |
| 28 | auf 20 begrenzt. Setzt dann das Attribut. |
| 29 | Offsets werden hier nicht beruecksichtigt, QueryAttribute() gibt also |
| 30 | val + etwaige Offsets/Modifier zurueck. |
| 31 | |
| 32 | |
| 33 | RUeCKGABEWERT |
| 34 | ============= |
| 35 | |
| 36 | Tatsaechlich gesetzter Wert. |
| 37 | |
| 38 | |
| 39 | BEMERKUNGEN |
| 40 | =========== |
| 41 | |
| 42 | Wird von SetAttribute() und SetRealAttribute() aufgerufen. |
| 43 | |
| 44 | |
| 45 | SIEHE AUCH |
| 46 | ========== |
| 47 | |
| 48 | QueryAttribute(), QueryRealAttribute(), QueryAttributeOffset(), |
| 49 | SetAttribute(), SetRealAttribute(), UpdateAttributes(), |
| 50 | TestAttributeLock(), |
| 51 | P_ATTRIBUTES, P_ATTRIBUTES_OFFSETS, P_ATTRIBUTES_MODIFIER, |
| 52 | P_X_ATTR_MOD, P_M_ATTR_MOD, /std/living/attributes.c |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 53 | |
Bugfix | 00f1bc7 | 2016-12-22 16:40:55 +0100 | [diff] [blame] | 54 | Letzte Aenderung: 22.12.2016, Bugfix |