adds all missing items and refactors gulpfile

main
macniel 2026-02-22 16:41:05 +01:00
parent a58ee6d5b6
commit e639387848
192 changed files with 1030 additions and 25 deletions

View File

@ -1,7 +1,6 @@
import {dest, series, src} from 'gulp';
import gulp from 'gulp';
import process from 'node:process';
import replace from 'gulp-replace';
import jsonModify from 'gulp-json-modify';
import {subtle} from 'node:crypto';
import * as dartSass from 'sass';
@ -152,17 +151,31 @@ gulp.task('prepareDB', async function (done) {
await convert("./src/packs/_source/nachteile", "./src/packs/__source/vorteile", "Advantage", false)
await convert("./src/packs/_source/sonderfertigkeiten", "./src/packs/__source/sonderfertigkeiten", "SpecialAbility")
await convert("./src/packs/_source/waehrungen", "./src/packs/__source/waehrungen", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Waffen", "./src/packs/__source/waffen", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Munition", "./src/packs/__source/munition", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Ruestzeug", "./src/packs/__source/ruestzeug", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Behaelter", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Bekleidung", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Beleuchtung", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Buecher", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Essutensilien", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Sonstiges", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Werkzeug", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Fahrzeuge", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Feinmechanik", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Freizeitbedarf", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Gewuerze", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Gifte", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Heilkraeuter", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Kleidung", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Koerperpflege", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Munition", "./src/packs/__source/munition", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Musikinstrumente", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Reisebedarf", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Ruestzeug", "./src/packs/__source/ruestzeug", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Schmuck", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Schreibbedarf", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Seile", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Tierbedarf", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Waffen", "./src/packs/__source/waffen", "Equipment")
await convert("./src/packs/_source/Gegenstaende/Waffenzubehoer", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/Gegenstaende/Werkzeug", "./src/packs/__source/gegenstaende", "Equipment", false)
await convert("./src/packs/_source/liturgien-und-segnungen", "./src/packs/__source/liturgien", "Liturgy")
await convert("./src/packs/_source/wunden", "./src/packs/__source/wunden", "ActiveEffect")
@ -182,7 +195,7 @@ gulp.task('buildDB', function (done) {
const PACK_SRC = "src/packs/__source"
const PACK_DEST = "dist/packs/"
return new Promise(async (resolve, reject) => {
return new Promise(async (resolve) => {
const folders = readdirSync(PACK_SRC, {withFileTypes: true}).filter(file =>
file.isDirectory()
);

View File

@ -0,0 +1,10 @@
{
"name": "Bandurria",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 2,
"price": 150
}

View File

@ -0,0 +1,10 @@
{
"name": "Beinflöte",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 0.25,
"price": 20
}

View File

@ -1,9 +1,10 @@
{
"name": "Seife",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_29.png",
"name": "Dabla",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand"
"Gegenstand",
"Instrument"
],
"weight": 0.5,
"price": 0.2
"price": 10
}

View File

@ -0,0 +1,10 @@
{
"name": "Drehleier",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 2,
"price": 150
}

View File

@ -0,0 +1,10 @@
{
"name": "Fanfare",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 1,
"price": 70
}

View File

@ -0,0 +1,10 @@
{
"name": "Glocken",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 0.025,
"price": 2
}

View File

@ -0,0 +1,10 @@
{
"name": "Glockenspiel",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 3,
"price": 100
}

View File

@ -0,0 +1,10 @@
{
"name": "Handharfe",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 1,
"price": 100
}

View File

@ -0,0 +1,10 @@
{
"name": "Holzfloete",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 0.2,
"price": 2
}

View File

@ -0,0 +1,10 @@
{
"name": "Horn",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 1,
"price": 70
}

View File

@ -0,0 +1,10 @@
{
"name": "Laute",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 2,
"price": 150
}

View File

@ -0,0 +1,10 @@
{
"name": "Leier",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 1,
"price": 100
}

View File

@ -0,0 +1,10 @@
{
"name": "Pfeifenbalg, zwergisch",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 2,
"price": 100
}

View File

@ -0,0 +1,10 @@
{
"name": "Schellen",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 0.025,
"price": 2
}

View File

@ -0,0 +1,10 @@
{
"name": "Silberfloete",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 0.75,
"price": 150
}

View File

@ -0,0 +1,10 @@
{
"name": "Söldnertrommel",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 2,
"price": 20
}

View File

@ -0,0 +1,10 @@
{
"name": "Spinett",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 100,
"price": 3000
}

View File

@ -0,0 +1,10 @@
{
"name": "Standharfe",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 7.5,
"price": 350
}

View File

@ -1,9 +1,10 @@
{
"name": "Tabakpfeife, Wurzelholz",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_29.png",
"name": "Trommel",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand"
"Gegenstand",
"Instrument"
],
"weight": 0.125,
"weight": 0.5,
"price": 10
}

View File

@ -0,0 +1,10 @@
{
"name": "Zimbeln",
"image": "systems/DSA_4-1/assets/Condiments/SODA_Icon_Condiments_27.png",
"category": [
"Gegenstand",
"Instrument"
],
"weight": 0.025,
"price": 2
}

View File

@ -0,0 +1,9 @@
{
"name": "Hängematte",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 2,
"price": 10
}

View File

@ -0,0 +1,9 @@
{
"name": "Kleines Fischernetz",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 1,
"price": 10
}

View File

@ -0,0 +1,9 @@
{
"name": "Nivesische Skier",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 1.5,
"price": 12
}

View File

@ -0,0 +1,9 @@
{
"name": "Schneeschuhe",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 1.5,
"price": 12
}

View File

@ -0,0 +1,9 @@
{
"name": "Vierpersonenzelt",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 22.5,
"price": 50
}

View File

@ -1,9 +1,9 @@
{
"name": "Nagelfeile",
"name": "Wolldecke",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 0.05,
"weight": 1.5,
"price": 3
}

View File

@ -0,0 +1,9 @@
{
"name": "Wurfhaken",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 0.25,
"price": 5
}

View File

@ -0,0 +1,9 @@
{
"name": "Zeltboden",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 2,
"price": 8
}

View File

@ -0,0 +1,9 @@
{
"name": "Zeltplane (2 Personen)",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 7.5,
"price": 20
}

View File

@ -0,0 +1,9 @@
{
"name": "Zeltstange",
"image": "systems/DSA_4-1/assets/Adventure_Items/SODA_Icon_AdventureItems_Rope.png",
"category": [
"Gegenstand"
],
"weight": 3,
"price": 1.5
}

View File

@ -0,0 +1,9 @@
{
"name": "Amulett",
"image": "systems/DSA_4-1/assets/Accessories/SODA_Icon_Accessory_Medallion.png",
"category": [
"Gegenstand"
],
"weight": 0.05,
"price": 4
}

View File

@ -0,0 +1,9 @@
{
"name": "Armreif",
"image": "systems/DSA_4-1/assets/Accessories/SODA_Icon_Accessory_Medallion.png",
"category": [
"Gegenstand"
],
"weight": 0.25,
"price": 60
}

View File

@ -0,0 +1,9 @@
{
"name": "Fächer, Mammuton",
"image": "systems/DSA_4-1/assets/Accessories/SODA_Icon_Accessory_Medallion.png",
"category": [
"Gegenstand"
],
"weight": 0.125,
"price": 8
}

View File

@ -0,0 +1,9 @@
{
"name": "Fächer, Seide",
"image": "systems/DSA_4-1/assets/Accessories/SODA_Icon_Accessory_Medallion.png",
"category": [
"Gegenstand"
],
"weight": 0.125,
"price": 8
}

Some files were not shown because too many files have changed in this diff Show More