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

RU Translation and Armor Fix #150

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SuperCoon666
Copy link

I've fixed the armor functionality. Added translations for skills into Russian and automatic adjustment of the base skills database depending on the language set.

Copy link
Collaborator

@OctarineSourcerer OctarineSourcerer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! Really appreciate it, especially the translation; that's something I straight-up could not have done. I've added a couple comments, with requested changes, but by and large looks good :)

module/utils.js Outdated
const pack = game.packs.get("cyberpunk2020.default-skills");
// Получаем значение настройки языка
const selectedLanguage= game.i18n.lang
console.log("TEST: LANG: ", selectedLanguage)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best to remove this console.log. I'd love for the comments to be in English too. Nothin' against Russian, just means we get a consistent codebase where only one language needs to be known to work in it :)


// Определяем, какой пакет загружать на основе выбранного языка
let packName;
switch(selectedLanguage) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a decent way of going about things, though might start to get complex if we do things going off the default skills, for example solo's initiative-boosting. We'd have to look for the skill with the correct name in multiple languages.

I'm thinking in the future, we could possibly have default skills be named as translation keys (eg Cyberpunk.AV), and translate those, whereas user-supplied skills wouldn't be a translation key and wouldn't successfully get translated

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra Q: there are other languages without their own skill compendiums. I'd request that this be added, but I don't think either of us are linguistically capable of doing it with Spanish and Italian 😅

for(let armorArea in armorData.coverage) {
let location = system.hitLocations[armorArea];
if(location !== undefined) {
armorArea = armorData.coverage[armorArea];
location.stoppingPower += armorArea.stoppingPower;
let armorValue = armorData.coverage[armorArea].stoppingPower;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the v2 of armor addition! I'd forgotten I needed to account for armour-stacking after the initial implementation.

As mentioned in a later comment, we probably want to stick to comments in one language

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

Successfully merging this pull request may close these issues.

None yet

2 participants