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

Compatibility bugs, small improvements #223

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9f37936
Removed check for 8.0
rommienunes Mar 27, 2022
667ec92
Removed chat to void error
rommienunes Mar 27, 2022
675f511
Updated package name and version
rommienunes Mar 27, 2022
78aca0a
Changed Cyphers to Numenera on character tab Eng
rommienunes Mar 27, 2022
ae08f46
Changed Other Efforts to Assets on Effort diialog
rommienunes Mar 27, 2022
22765bd
Changed color of Numenera and Artifact on PC sheet
rommienunes Mar 27, 2022
9d958ca
Updated manifest
rommienunes Mar 27, 2022
bc80621
package name
rommienunes Mar 27, 2022
47b3b3f
package version
rommienunes Mar 27, 2022
e158413
Font sans
rommienunes Mar 27, 2022
60f7256
zip download link update
rommienunes Mar 27, 2022
7ca7aa4
packages
rommienunes Mar 27, 2022
e7c45c6
Manifest link
rommienunes Mar 27, 2022
a9e54d3
download package
rommienunes Mar 27, 2022
3c1f9f0
manifest download link
rommienunes Mar 27, 2022
71b9087
manifest
rommienunes Mar 27, 2022
fc7a9ca
manifest
rommienunes Mar 27, 2022
b2495ad
font-sans
rommienunes Mar 27, 2022
c2f1a72
Recovery dialog fix
rommienunes Mar 27, 2022
d6e878c
Compatible version and minimum version
rommienunes Mar 27, 2022
f6f7bda
compatible core version
rommienunes Mar 28, 2022
c2bc183
Removed low contrast whitesmoke
rommienunes Mar 28, 2022
fcd03bc
Fixed recovery roll (sync roll)
rommienunes Mar 28, 2022
c8daf60
Fixed depletion roll (async false)
rommienunes Mar 28, 2022
20d9c49
Removed console messages
rommienunes Mar 28, 2022
d77d59d
Set rolls to sync where needed
rommienunes Mar 28, 2022
62b3e12
update repo name and url for v1.8.2
rommienunes Mar 28, 2022
9b86f46
Character sheet to Numenera on multiple langs
rommienunes Mar 28, 2022
59bd001
system name back to original "numenera"
rommienunes Mar 28, 2022
1d3851e
changing to numenera-improved
rommienunes Mar 28, 2022
cff805e
manifest address
rommienunes Mar 28, 2022
2ebead0
Update README.md
rommie-nunes Mar 28, 2022
c509d4f
Update README.md
rommie-nunes Mar 28, 2022
0f03d9c
Update README.md
rommie-nunes Mar 28, 2022
cf14550
Update README.md
rommie-nunes Mar 28, 2022
daafeac
Update README.md
rommie-nunes Mar 28, 2022
2360948
Update README.md
rommie-nunes Mar 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Numenera Improved
The orginal plugin had mutiple incompatibility with Foundry v9 so I did a few fixes. Besides the popular little improvements to make it more compatible with the system language (Extra effort -> Assets, Cypher -> Numenera). I had trouble trying to make this as an update to the current version so I have renamed it to Numenera Improved. It is compatible with Numenera shared compendiums so you can migrate your games over easily.

## How to use this?
Go into you Foundry Setup > Install System.

Enter this URL on the manifest field: https://raw.githubusercontent.com/rommie-nunes/Numenera-FoundryVTT/master/system.json

Done, you have the Numenera-Improved system installed.

Note: This will not override your current Numenera system.

## Enjoying it?
[![Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/rommienunes)

# Cypher System for the Foundry VTT

Do you enjoy using the system? Then support my harmful caffeine intake habits and buy me some beans!
Expand Down
2 changes: 1 addition & 1 deletion lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

"NUMENERA.pcActorSheet.tab.skills": "Fertigkeiten",
"NUMENERA.pcActorSheet.tab.abilities": "Sonderfähigkeiten",
"NUMENERA.pcActorSheet.tab.cyphers": "Cypher",
"NUMENERA.pcActorSheet.tab.cyphers": "Numenera",
"NUMENERA.pcActorSheet.tab.strange": "Strange",
"NUMENERA.pcActorSheet.tab.recursion": "Recursions",
"NUMENERA.pcActorSheet.tab.equipment": "Ausrüstung",
Expand Down
4 changes: 2 additions & 2 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"NUMENERA.effort.title": "Effort",
"NUMENERA.effort.againstTaskLevel": "against task level",
"NUMENERA.effort.failAutomatically": "Automatic Failure",
"NUMENERA.effort.other": "Other Enhancements",
"NUMENERA.effort.other": "Assets",
"NUMENERA.effort.confirmUnspentTitle": "Confirm: Unspent Points",
"NUMENERA.effort.confirmUnspent": "You have unspent points are your pools are not full yet. Do you really want to exit? These points will be lost.",
"NUMENERA.effort.cost": "Cost",
Expand Down Expand Up @@ -111,7 +111,7 @@

"NUMENERA.pcActorSheet.tab.skills": "Skills",
"NUMENERA.pcActorSheet.tab.abilities": "Abilities",
"NUMENERA.pcActorSheet.tab.cyphers": "Cyphers",
"NUMENERA.pcActorSheet.tab.cyphers": "Numenera",
"NUMENERA.pcActorSheet.tab.strange": "Strange",
"NUMENERA.pcActorSheet.tab.recursion": "Recursions",
"NUMENERA.pcActorSheet.tab.equipment": "Equipment",
Expand Down
2 changes: 1 addition & 1 deletion lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

"NUMENERA.pcActorSheet.tab.skills": "Habilidades",
"NUMENERA.pcActorSheet.tab.abilities": "Capacidades",
"NUMENERA.pcActorSheet.tab.cyphers": "Cypher",
"NUMENERA.pcActorSheet.tab.cyphers": "Numenera",
"NUMENERA.pcActorSheet.tab.strange": "Strange",
"NUMENERA.pcActorSheet.tab.recursion": "Recursiones",
"NUMENERA.pcActorSheet.tab.equipment": "Equipo",
Expand Down
2 changes: 1 addition & 1 deletion lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

"NUMENERA.pcActorSheet.tab.skills": "Compétences",
"NUMENERA.pcActorSheet.tab.abilities": "Aptitudes",
"NUMENERA.pcActorSheet.tab.cyphers": "Cypher",
"NUMENERA.pcActorSheet.tab.cyphers": "Numenera",
"NUMENERA.pcActorSheet.tab.strange": "Étrange",
"NUMENERA.pcActorSheet.tab.recursion": "Récursion",
"NUMENERA.pcActorSheet.tab.equipment": "Équipement",
Expand Down
2 changes: 1 addition & 1 deletion lang/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"NUMENERA.pcActorSheet.advancement.xp": "XP",
"NUMENERA.pcActorSheet.tab.skills": "Perícias",
"NUMENERA.pcActorSheet.tab.abilities": "Habilidades Especiais",
"NUMENERA.pcActorSheet.tab.cyphers": "Cifras",
"NUMENERA.pcActorSheet.tab.cyphers": "Numenera",
"NUMENERA.pcActorSheet.tab.strange": "Estranho",
"NUMENERA.pcActorSheet.tab.recursion": "Recursos",
"NUMENERA.pcActorSheet.tab.equipment": "Equipamento",
Expand Down
4 changes: 2 additions & 2 deletions module/actor/NumeneraPCActor.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class NumeneraPCActor extends Actor {
rollData.enhancements = enhancements;

const roll = rollData.getRoll();
roll.roll();
roll.roll({async:false});

let flavor = game.i18n.localize("NUMENERA.rolling") + " " + skill.data.data.name;

Expand Down Expand Up @@ -561,7 +561,7 @@ export class NumeneraPCActor extends Actor {
//TODO move all of this BEFORE the item creation

//Try the formula as is first
itemData.level = new Roll(itemData.levelDie).roll().total;
itemData.level = new Roll(itemData.levelDie).roll({async:false}).total;

} catch (Error) {
try {
Expand Down
3 changes: 0 additions & 3 deletions module/actor/sheets/NumeneraCommunityActorSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ export class NumeneraCommunityActorSheet extends ActorSheet {
getData() {
const sheetData = super.getData();

//lol? https://discord.com/channels/170995199584108546/670336275496042502/836066464388743188
//TODO remove condition when removing support for 0.7
if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

if (this.actor.getUserLevel() < CONST.ENTITY_PERMISSIONS.OBSERVER)
Expand Down
5 changes: 1 addition & 4 deletions module/actor/sheets/NumeneraNPCActorSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ export class NumeneraNPCActorSheet extends ActorSheet {
getData() {
const sheetData = super.getData();

//lol? https://discord.com/channels/170995199584108546/670336275496042502/836066464388743188
//TODO remove condition when removing support for 0.7
if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;
sheetData.data = sheetData.data.data;

sheetData.ranges = NUMENERA.ranges.map(r => game.i18n.localize(r));

Expand Down
2 changes: 1 addition & 1 deletion module/actor/sheets/NumeneraPCActorSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ export class NumeneraPCActorSheet extends ActorSheet {
if (!depletion.isDepleting || !depletion.die || !depletion.threshold)
return;

const roll = new Roll(depletion.die).roll();
const roll = new Roll(depletion.die).roll({async:false});

roll.toMessage({
speaker: ChatMessage.getSpeaker(),
Expand Down
14 changes: 9 additions & 5 deletions module/apps/RecoveryDialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { NumeneraPCActor } from "../actor/NumeneraPCActor.js";
import { NUMENERA } from "../config.js";
import { RollData } from '../dice/RollData.js';

export class RecoveryDialog extends FormApplication {

Expand Down Expand Up @@ -139,9 +140,9 @@ export class RecoveryDialog extends FormApplication {
"data.recoveries": this.object.recoveriesLeft
});

ChatMessage.create({
content: `<h3>${this.object.actor.data.name} ${game.i18n.localize("NUMENERA.recoveries.resetDialog.confirmation")}</h3>`,
});
ChatMessage.create({
content: `<h3>${this.object.actor.data.name} ${game.i18n.localize("NUMENERA.recoveries.resetDialog.confirmation")}</h3>`,
});

this.render();
}
Expand All @@ -165,10 +166,13 @@ export class RecoveryDialog extends FormApplication {
return;
}

const roll = new Roll(this._getFormula(nbDice, this.object.tempBonus)).roll();
const formula = this._getFormula(nbDice, this.object.tempBonus);
const roll = new Roll(formula);
roll.evaluate({async:false});
roll.toMessage({
speaker: ChatMessage.getSpeaker(),
flavor: `${this.object.actor.data.name} rolls for Recovery`,
messageData: "recovery test",
flavor: `${this.object.actor.data.name} rolls for Recovery`,
});

this.object.unspentRecoveryPoints += roll.total;
Expand Down
2 changes: 1 addition & 1 deletion module/combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function rollInitiative(ids, {formula=null, updateTurn=true, messag
const rollData = c.actor ? c.actor.getRollData() : {};

const cf = formula || this._getInitiativeFormula(c);
const roll = new Roll(cf, rollData).roll();
const roll = new Roll(cf, rollData).roll({async:false});
updates.push({ _id: id, initiative: roll.total });

// In Numenera, initiative is fixed for NPCs so don't spam the chat with constant values!
Expand Down
2 changes: 1 addition & 1 deletion module/dice/RollData.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export function numeneraRoll(topic) {
const rollData = new RollData();
rollData.topic = topic;

const roll = rollData.getRoll().roll();
const roll = rollData.getRoll().roll({async:false});

roll.toMessage({
speaker: ChatMessage.getSpeaker(),
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraAbilityItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class NumeneraAbilityItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

sheetData.data.ranges = NUMENERA.optionalRanges;
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraArmorItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class NumeneraArmorItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

sheetData.weightClasses = NUMENERA.weightClasses;
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraArtifactItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export class NumeneraArtifactItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

//Is it The Strange?
Expand Down
3 changes: 1 addition & 2 deletions module/item/sheets/NumeneraCypherItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export class NumeneraCypherItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;
sheetData.data = sheetData.data.data;

const flavor = NumeneraCypherItem.cypherTypeFlavor;
const useCypherTypes = !!flavor;
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraEquipmentItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export class NumeneraEquipmentItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

return sheetData;
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraOddityItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class NumeneraOddityItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

return sheetData;
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraPowerShiftItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class NumeneraPowerShiftItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

sheetData.effects = NUMENERA.powerShiftEffects;
Expand Down
3 changes: 1 addition & 2 deletions module/item/sheets/NumeneraSkillItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export class NumeneraSkillItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;
sheetData.data = sheetData.data.data;

sheetData.data.stats = NUMENERA.stats;

Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/NumeneraWeaponItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class NumeneraWeaponItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

sheetData.ranges = NUMENERA.ranges;
Expand Down
1 change: 0 additions & 1 deletion module/item/sheets/StrangeRecursionItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class StrangeRecursionItemSheet extends ItemSheet {
getData() {
const sheetData = super.getData();

if (game.data.version.startsWith("0.8."))
sheetData.data = sheetData.data.data;

return sheetData;
Expand Down
Loading