Skip to content

Commit 458f76f

Browse files
committed
refactor: 🎨 refactor character sheet
1 parent a878996 commit 458f76f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+113
-155
lines changed
File renamed without changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import {INonPlayerCharacter} from '../IArchetype';
2+
3+
export class VallonOni implements INonPlayerCharacter {
4+
name: 'Vallon Oni';
5+
description: '';
6+
}
7+
8+
export class Mischievous implements INonPlayerCharacter {
9+
name: 'Mischievous';
10+
description: 'A black and white cat with yellow eyes.';
11+
affiliation: Array<string> = ['The Keepers of Law'];
12+
}
13+
14+
export class MahdiTsia implements INonPlayerCharacter {
15+
name: 'Mahdi Tsia';
16+
description: "Malace's brother";
17+
}
18+
19+
export class Lawzon implements INonPlayerCharacter {
20+
name: string = 'Lawzon';
21+
description: string = '';
22+
history: string =
23+
'Rumored to be the most powerful fighter from the north. He fought only to protect his village until it was wiped out from a great frost. He now wonders around lifelessly in search of an end. He is by far the most strongest of the seven but has no will to fight.';
24+
}
25+
26+
export class Janus implements INonPlayerCharacter {
27+
name: string = 'Janus';
28+
description: string = 'The Keeper of Time';
29+
}
30+
31+
export class Spider implements INonPlayerCharacter {
32+
name: string = 'Spider';
33+
description: string = 'A spider';
34+
}

packages/character-sheet/src/ecs/component/archetype/PlayerCharacter.ts renamed to packages/character-sheet/src/component/archetype/PlayerCharacter.ts

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import {StatusEffects} from '../effect/StatusEffect';
22
import {Drive, Life, Spirit, Stats} from '../character/Attribute';
33
import {Traits} from '../character/Trait';
4-
import {Token} from './../equipment/Token';
4+
import {Token} from '../equipment/Token';
55
import {Assassin, Cheerleader, Commander, Cook, Discipline, Gaurd, Healer, Hero, Historian, Knight, Magi, MagiBlack, MagiBlue, MagiBrown, MagiGreen, MagiPink, MagiPurple, MagiWhite, MagiYellow, Mechanic, Rouge, Royalty, Scout, Solider, Summoner, Thief, Warrior, XSolider} from '../character/Discipline';
66
import { Oni } from '../skill/DriveSkill';
7+
import { OfficersUniform, Outfit, Outfits, TShirtAndJeans } from '../equipment/Outfit';
8+
import { GearSlot } from '../equipment/Gear';
79

810
/**
911
* A character that can be played
@@ -14,14 +16,38 @@ export interface PlayerCharacter {
1416
lastName: string;
1517
backstory: string;
1618
experience?: number;
19+
20+
// these seem more like they loaded or determined for player characters
1721
life?: Life;
1822
drive?: Drive;
1923
spirit?: Spirit;
2024
stats?: Stats;
25+
2126
traits?: Traits;
2227
statusEffects?: StatusEffects;
2328
token?: Token;
2429
potentialDisciplines?: Array<Discipline>;
30+
potentialOutfits?: Array<Outfit>;
31+
potentialGeatSlots?: Array<GearSlot>;
32+
}
33+
34+
export class Character {
35+
36+
// base character not stored in database
37+
archetype: MeekuOni;
38+
39+
// the values actually stored in the database are the raw stats
40+
// characters actual stats vary based on disciplines, afflictions, and equipment
41+
rawStats = [];
42+
43+
44+
/**
45+
* skills are determined based on disciplines, afflictions, and equipment
46+
* they are not correlated to character
47+
*/
48+
getSkills(){
49+
50+
}
2551
}
2652

2753
export class ArinothDiyath implements PlayerCharacter {
@@ -109,7 +135,7 @@ export class MalaceTsia implements PlayerCharacter {
109135
Summoner,
110136
Rouge
111137
];
112-
138+
potentialOutfits: [OfficersUniform]
113139
}
114140

115141
export class MeekuOni implements PlayerCharacter {
@@ -123,6 +149,7 @@ export class MeekuOni implements PlayerCharacter {
123149
Oni,
124150
Hero,
125151
];
152+
potentialOutfits: [TShirtAndJeans];
126153
}
127154

128155
export class PennyKibbutz implements PlayerCharacter {

0 commit comments

Comments
 (0)