Complete Transportation data model
This commit is contained in:
parent
8ee455b977
commit
fd4ab482b4
1 changed files with 32 additions and 0 deletions
32
module/models/Item/Transportation.mjs
Normal file
32
module/models/Item/Transportation.mjs
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
import { DescribedItemData } from "./DescribedItemData.mjs";
|
||||||
|
|
||||||
|
export class TransportationItemData extends DescribedItemData {
|
||||||
|
static defineSchema() {
|
||||||
|
const fields = foundry.data.fields;
|
||||||
|
return mergeObject(super.defineSchema(), {
|
||||||
|
single_trip: new fields.NumberField({
|
||||||
|
initial: null,
|
||||||
|
nullable: true,
|
||||||
|
}),
|
||||||
|
purchase: new fields.NumberField({
|
||||||
|
initial: null,
|
||||||
|
nullable: true,
|
||||||
|
}),
|
||||||
|
upkeep: new fields.NumberField({
|
||||||
|
initial: null,
|
||||||
|
nullable: true,
|
||||||
|
}),
|
||||||
|
can_be_in_inventory: new fields.BooleanField({
|
||||||
|
initial: false,
|
||||||
|
}),
|
||||||
|
inventory_slots: new fields.NumberField({
|
||||||
|
initial: 0,
|
||||||
|
min: 0,
|
||||||
|
}),
|
||||||
|
logon_bonus: new fields.NumberField({
|
||||||
|
initial: null,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue