Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate Adv/Disadv/SA name and cost based on ActiveObjectWithId #3

Closed
elyukai opened this issue Aug 23, 2017 · 0 comments
Closed
Assignees
Milestone

Comments

@elyukai
Copy link
Owner

elyukai commented Aug 23, 2017

Given the interface

interface ActiveObject { // from data.d.ts
    sid?: string | number;
    sid2?: string | number;
    tier?: number;
}

interface ActiveObjectWithId extends ActiveObject {
    id: string;
}

, which is used by RCP for setting advantages/disadvantages/special abilities, the new function needs to create a new object based on ActiveObjectWithId, implementing the interface

interface RequiredActivatableViewObject {
    id: string;
    name: string;
    add?: string; // addition to the name, such as 'Church of Praios' in 'Tradition (Church of Praios)'
    tier?: number;
    cost: number;
}

This will be used for calculating culture and profession costs and displaying the names (and costs) in the wiki.

@elyukai elyukai self-assigned this Sep 17, 2017
@elyukai elyukai added this to the Beta milestone Sep 17, 2017
@elyukai elyukai closed this as completed Oct 21, 2017
elyukai pushed a commit that referenced this issue Apr 16, 2018
elyukai pushed a commit that referenced this issue May 8, 2019
elyukai pushed a commit that referenced this issue Jul 30, 2019
elyukai pushed a commit that referenced this issue Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant