space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.73k stars 3.46k forks source link

Need a spell / "action" system #31023

Open metalgearsloth opened 3 months ago

metalgearsloth commented 3 months ago

Current issue is you get every single system re-inventing the wheel trying to do "hey cast a fireball, hey spawn an entity on cursor / around cursor". Magic does this, mime power does this, goliath does this, probably more I'm unaware of.

Ideally this would all be done via the same system and be compositional. e.g.

- type: spell
  id: Weh
  actions:
  - !type:SpawnEntityOnCursor
    limit: 1
  targets:
  - !type:TilesPerpendicular
    width: 3

- type: spell
  id: Weh2
  actions:
  - !type:SpawnEntityOnCursor
  targets:
  - !type:TilesInCircle
    radius: 5
IProduceWidgets commented 2 months ago

@keronshb Forsooth!