Skip to content

openfantasymap/ofm-blastzone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FantasyMaps Blast Zone

Blow up walls with measured templates. An OFM fork of theripper93/blastzone, kept alive for Foundry v11+ and wired into ofm-shared-world so a blast in one session propagates to every other GM sharing that world.

Before the blast:

before

After the blast:

after

Using it

Open any MeasuredTemplateConfig dialog — a Blast! button is added to the header. Confirming the dialog destroys every wall fully enclosed by the template and clips walls that cross its edges.

blast button

Triggering from a macro

const { BlastZone } = game.modules.get("ofm-blastzone").api;
await new BlastZone(template).blast();

template can be either a MeasuredTemplate placeable or a MeasuredTemplateDocument. blast() resolves the containing scene and applies the wall changes there — so macros run from a non-viewed scene work too.

The returned object has { destroyed, created } if you want to chain further logic.

Compatibility

  • Foundry v11 – v13 (verified on v13).
  • Supports all four template types: circle, cone, ray, rectangle.
  • Emits ofmSharedWorldChange with { type: "blast", data: polygon } when the scene has an ofm flag set — picked up by ofm-shared-world.

Installing

Manifest URL:

https://raw.githubusercontent.com/openfantasymap/ofm-blastzone/master/module.json

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%