Lua: Allow creating gas clouds

Use the gas clouds in the Clouds themeroom.
Use the existing visible_region_at() in the vision code.
This commit is contained in:
Pasi Kallinen
2024-01-19 17:54:19 +02:00
parent da4bf5a87e
commit 2212cf27ec
6 changed files with 102 additions and 10 deletions

View File

@@ -569,6 +569,21 @@ Example:
des.finalize_level();
=== gas_cloud
Create a gas cloud.
The `damage` and `ttl` fields are optional.
Defaults to non-poisonous and infinite lifetime.
Example:
des.gas_cloud({ x = XX, y = YY });
des.gas_cloud({ coord = { XX, YY } });
des.gas_cloud({ selection = SEL });
des.gas_cloud({ selection = SEL, damage = 5 });
des.gas_cloud({ selection = SEL, damage = 5, ttl = 200 });
=== gold
Create a pile of gold.