mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Heart pickup and game over sync, again.
This commit is contained in:
parent
37851b18cf
commit
dc815e2faa
5 changed files with 62 additions and 15 deletions
22
docs/capabilities.md
Normal file
22
docs/capabilities.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Capabilities
|
||||
|
||||
Capabilities allow several systems provide same functionality in different ways. Exactly one capability implementation should be active.
|
||||
|
||||
Capabilities are registered by having an entry in `ctx.cap` table.
|
||||
|
||||
# List of capabilities
|
||||
|
||||
## `health` capability
|
||||
|
||||
Functions:
|
||||
- `health() -> num`
|
||||
- `max_health() -> num`
|
||||
- `set_health(hp: num)`
|
||||
- `set_max_health(hp: num)`
|
||||
- `inflict_damage(dmg: num)`
|
||||
|
||||
Provided by:
|
||||
- damage (shared health) system
|
||||
|
||||
Used by:
|
||||
- heart pickups (core)
|
Loading…
Add table
Add a link
Reference in a new issue