Skip to content

Instantly share code, notes, and snippets.

View manniL's full-sized avatar
💡
Realizing new ideas

Alexander Lichter manniL

💡
Realizing new ideas
View GitHub Profile
````md magic-move
```vue
<script>
const value = ref(Math.random())
</script>
<template>
<div>{{ value }}</div>
</template>
```
@manniL
manniL / lock-doors.js
Last active April 25, 2022 12:26
FoundryVTT - Lock all doors in current scene
/**
This is a macro for FoundryVTT to lock all door in a scene.
Author: manniL#9160
*/
const DOOR_STATE_LOCKED = 2
const updates = []
canvas.walls?.doors
.filter((item) => item.data.ds !== DOOR_STATE_LOCKED)