Skip to content

Commit

Permalink
Moved almost everything out of 'unconverted' and made disabled system…
Browse files Browse the repository at this point in the history
…s from generic and V20.
  • Loading branch information
Morgul committed Dec 11, 2024
1 parent 3d5d19a commit 496d1d5
Show file tree
Hide file tree
Showing 31 changed files with 105 additions and 1,802 deletions.
File renamed without changes.
13 changes: 13 additions & 0 deletions docs/systems/generic-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generic System Design

There's a good argument to be made for a generic system that lets you make a character for any system, roughly, to
store your character in RPGKeeper. This would be a system that would let you define your own fields, and then store
the data in a JSON blob. This would be a good way to store characters for systems that don't have a system-specific
character sheet, or for systems that have a lot of variability in their character sheets.

_TODO: Design the rest of this._

## History

RPGKeeper originally had a generic system, but it was considered too complex and was removed. To see screenshots of the
original system, see the [screenshots](./generic/screenshots) directory.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
//----------------------------------------------------------------------------------------------------------------------
// Generic Model Defaults
// Generic System Model
//----------------------------------------------------------------------------------------------------------------------

export default {
character: {
},
};
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface GenericSystemDetails
{
// TODO: Add generic system details
}

//----------------------------------------------------------------------------------------------------------------------
28 changes: 28 additions & 0 deletions src/common/models/systems/v20.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//----------------------------------------------------------------------------------------------------------------------
// Vampire 20th Edition System Models
//----------------------------------------------------------------------------------------------------------------------

export interface V20SystemDetails
{
nature : string;
demeanor : string;
concept : string;
clan : string;
generation : number;
sire : string;

// Attributes
strength : number;
dexterity : number;
stamina : number;
charisma : number;
manipulation : number;
appearance : number;
perception : number;
intelligence : number;
wits : number;

// TODO: Add Abilities
}

//----------------------------------------------------------------------------------------------------------------------
4 changes: 4 additions & 0 deletions src/server/resource-access/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import { SystemDefinition } from '../../common/models/index.js';
// Systems
import CoC from './systems/coc.js';
import { eoteSystem, genesysSystem } from './systems/eote.js';
import Generic from './systems/generic.js';
import Risus from './systems/risus.js';
import Fate from './systems/fate.js';
import V20 from './systems/v20.js';
import Wfrp from './systems/wfrp.js';

//----------------------------------------------------------------------------------------------------------------------
Expand All @@ -20,8 +22,10 @@ export function list() : SystemDefinition[]
CoC,
eoteSystem,
Fate,
Generic,
genesysSystem,
Risus,
V20,
Wfrp,
];
}
Expand Down
19 changes: 19 additions & 0 deletions src/server/resource-access/systems/generic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//----------------------------------------------------------------------------------------------------------------------
// Generic System Definition
//----------------------------------------------------------------------------------------------------------------------

// Models
import { SupportStatus, SystemDefinition } from '../../../common/models/system.js';
import { GenericSystemDetails } from '../../../common/models/systems/generic.js';

//----------------------------------------------------------------------------------------------------------------------

export default {
id: 'generic',
name: 'Generic System',
description: 'A generic system designed to be usable with any pen and paper RPG.',
defaults: {},
status: SupportStatus.Disabled,
} satisfies SystemDefinition<GenericSystemDetails>;

//----------------------------------------------------------------------------------------------------------------------
35 changes: 35 additions & 0 deletions src/server/resource-access/systems/v20.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//----------------------------------------------------------------------------------------------------------------------
// Vampire 20th Anniversary Edition System Definition
//----------------------------------------------------------------------------------------------------------------------

// Models
import { SupportStatus, SystemDefinition } from '../../../common/models/system.js';
import { V20SystemDetails } from '../../../common/models/systems/v20.js';

//----------------------------------------------------------------------------------------------------------------------

export default {
id: 'v20',
name: 'Vampire: The Masquerade (20th Anniversary Edition)',
description: 'This system was built for V20, but should work for original VtM as well.',
defaults: {
nature: '',
demeanor: '',
concept: '',
clan: '',
generation: 13,
sire: '',
strength: 0,
dexterity: 0,
stamina: 0,
charisma: 0,
manipulation: 0,
appearance: 0,
perception: 0,
intelligence: 0,
wits: 0,
},
status: SupportStatus.Disabled,
} satisfies SystemDefinition<V20SystemDetails>;

//----------------------------------------------------------------------------------------------------------------------
119 changes: 0 additions & 119 deletions src/server/systems/unconverted/generic/client/character.scss

This file was deleted.

Loading

0 comments on commit 496d1d5

Please sign in to comment.