Finished basic NPC sheet
This commit is contained in:
@@ -16,6 +16,10 @@ const preloadTemplates = async (): Promise<Handlebars.TemplateDelegate<any>[]> =
|
||||
"sheets/character/combat.hbs",
|
||||
"sheets/character/effects.hbs",
|
||||
"sheets/npc/main.hbs",
|
||||
"sheets/npc/combat.hbs",
|
||||
"sheets/npc/properties.hbs",
|
||||
"sheets/npc/description.hbs",
|
||||
"sheets/npc/attribute.hbs",
|
||||
"sheets/partial/mod.hbs",
|
||||
"sheets/item/rolls.hbs",
|
||||
"chat/roll-m5.hbs",
|
||||
|
||||
@@ -162,6 +162,7 @@ export interface M5AttributeCalculated extends M5ModResult {
|
||||
|
||||
export interface M5CharacterCalculatedData {
|
||||
level: number;
|
||||
movement: number;
|
||||
attributes: {
|
||||
st: M5AttributeCalculated;
|
||||
gs: M5AttributeCalculated;
|
||||
|
||||
@@ -22,7 +22,7 @@ export default class M5CharacterSheet extends ActorSheet {
|
||||
|
||||
get template() {
|
||||
//console.log("M5CharacterSheet", this.actor.data.type)
|
||||
if (this.actor.data.type === "npc") {
|
||||
if (this.actor.type === "npc") {
|
||||
return "systems/midgard5/templates/sheets/npc/main.hbs";
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
// main: midgard5.less
|
||||
@borderGroove: 2px groove #eeede0;
|
||||
@attributeBorderColor: rgba(0, 0, 0, 0.5);
|
||||
|
||||
.midgard5 {
|
||||
.sheet-npc {
|
||||
.attribute-header {
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
border: 0px solid transparent;
|
||||
}
|
||||
.attribute-value {
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
border: 0px solid transparent;
|
||||
}
|
||||
.fixed-value {
|
||||
width: 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
"description": "",
|
||||
"background": "",
|
||||
"class": {},
|
||||
"npc-class": "",
|
||||
"race": "",
|
||||
"magicUsing": false,
|
||||
"showAllItems": false,
|
||||
@@ -48,6 +49,8 @@
|
||||
"gp": 0
|
||||
},
|
||||
"attributes": {
|
||||
"level": 1,
|
||||
"movement": 24,
|
||||
"attributes": {
|
||||
"st": { "value": 50, "bonus": 0 },
|
||||
"gs": { "value": 50, "bonus": 0 },
|
||||
@@ -383,6 +386,7 @@
|
||||
"hoarded": false,
|
||||
"skillId": "",
|
||||
"damageBase": "1d6",
|
||||
"ew": 5,
|
||||
"rolls": {
|
||||
"formulas": {
|
||||
"0": {
|
||||
|
||||
Reference in New Issue
Block a user