Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 1 | P_WEIGHT |
| 2 | ======== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 6 | |
Zesstra | da8c01f | 2018-07-25 16:43:07 +0200 | [diff] [blame] | 7 | P_WEIGHT "weight" |
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 | |
| 12 | /sys/thing/restrictions.h |
| 13 | |
| 14 | BESCHREIBUNG |
| 15 | ------------ |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 16 | |
Arathorn | 3696a03 | 2021-01-23 15:42:10 +0100 | [diff] [blame] | 17 | - Objekte: das Gewicht eines Objektes in Gramm |
| 18 | - Speisen: Gewicht einer Portion der Speise |
| 19 | - Container: das Gewicht des Containers ohne Inhalt |
| 20 | - Lebewesen: das Gewicht des Lebewesens ohne Inhalt |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 21 | |
| 22 | BEMERKUNGEN |
| 23 | ----------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 24 | |
Zesstra | da8c01f | 2018-07-25 16:43:07 +0200 | [diff] [blame] | 25 | Das Gewicht eines Objektes (in Gramm). |
| 26 | Bei normalen Objekten ist es das Gesamtgewicht dieses Objektes. |
| 27 | Bei Containern (und Lebewesen) ist es das Gewicht des Containers ohne |
| 28 | etwaigen Inhalt. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 29 | |
Zesstra | da8c01f | 2018-07-25 16:43:07 +0200 | [diff] [blame] | 30 | In tragbaren Speisen (welche von von /std/food erben) setzt man mit |
| 31 | SetProp das Gewicht _einer_ Portion. Per QueryProp erhaelt man aber das |
| 32 | Gesamtgewicht der Speise inclusive des eventuell vorhandenen Behaelters. |
| 33 | Das Gewicht des Behaelters wird dabei aus P_EMPTY_PROPS[P_WEIGHT] |
| 34 | gelesen. |
| 35 | |
Arathorn | 3696a03 | 2021-01-23 15:42:10 +0100 | [diff] [blame] | 36 | Wichtig fuer Gegenstaende, die von Spielern mitgenommen werden koennen: |
| 37 | Gibt man das Gewicht eines solchen Gegenstandes ausschliesslich per |
| 38 | Querymethode auf P_WEIGHT zurueck, ergibt sich eine Diskrepanz zwischen |
| 39 | P_WEIGHT und P_TOTAL_WEIGHT, da letzerer Wert nur beim Setzen von P_WEIGHT |
| 40 | per SetProp() mit eingestellt wird. Daher ist bei diesen Objekten darauf |
| 41 | zu achten, dass zusaetzlich eine Querymethode auf P_TOTAL_WEIGHT gesetzt |
| 42 | wird, die denselben Wert zurueckgibt. |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 43 | |
| 44 | SIEHE AUCH |
| 45 | ---------- |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 46 | |
Arathorn | 3696a03 | 2021-01-23 15:42:10 +0100 | [diff] [blame] | 47 | Properties: :doc:`../props/P_TOTAL_WEIGHT`, :doc:`../props/P_EMPTY_PROPS`, |
| 48 | :doc:`../props/P_WEIGHT_PERCENT`, :doc:`../props/P_WEIGHT_PER_UNIT` |
| 49 | |
Zesstra | da8c01f | 2018-07-25 16:43:07 +0200 | [diff] [blame] | 50 | zu Speisen: wiz/food |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 51 | |
Arathorn | 3696a03 | 2021-01-23 15:42:10 +0100 | [diff] [blame] | 52 | Last modified: 2021-01-22, Arathorn |
Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 53 | |