docs: Added DamageDescription class
+ fix for string -> str format in the ItemGround docs
This commit is contained in:
@@ -1,7 +1,35 @@
|
||||
import sqg2o
|
||||
|
||||
class DamageDescription(sqg2o.DamageDescription):
|
||||
"""
|
||||
This class represents damage information.
|
||||
Original: [DamageDescription](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-classes/item/DamageDescription//)
|
||||
|
||||
## `int` flags
|
||||
Represents the damage flags.
|
||||
|
||||
## `int` damage
|
||||
Represents the total damage taken.
|
||||
|
||||
## `str` item_instance *(read-only)*
|
||||
!!! note
|
||||
Can be empty if there is no weapon.
|
||||
Represents the weapon instance used to deal damage.
|
||||
|
||||
## `int` distance
|
||||
Represents the total distance, calculated from origin point to target.
|
||||
|
||||
## `int` spell_id
|
||||
Represents the spell id.
|
||||
|
||||
## `int` spell_level
|
||||
Represents the level of chargeable spells.
|
||||
|
||||
## `str` node
|
||||
!!! note
|
||||
Can be empty if there was no projectile.
|
||||
Represents the name of the node hit by a point projectile.
|
||||
"""
|
||||
def __init__(self):
|
||||
return super().__init__()
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ class ItemGround(sqg2o.ItemGround):
|
||||
## `int` id *(read-only)*
|
||||
Represents the unique id of the item ground.
|
||||
|
||||
## `string` instance *(read-only)*
|
||||
## `str` instance *(read-only)*
|
||||
Represents the item instance of the item ground.
|
||||
|
||||
## `int` amount *(read-only)*
|
||||
Represents the item amount of item ground.
|
||||
|
||||
## `string` world *(read-only)*
|
||||
## `str` world *(read-only)*
|
||||
Represents the item ground world (.ZEN file path).
|
||||
|
||||
## `int` virtualWorld
|
||||
|
||||
Reference in New Issue
Block a user