Russian: Update translation

This commit is contained in:
OleSTEEP 2024-01-24 16:48:29 +03:00
parent 812ee7c419
commit fc698e46d6
273 changed files with 11864 additions and 623486 deletions

View file

@ -177,7 +177,7 @@ if (mpDam > 0) {
case 'TRICK': // TRICK
text = user.name() + ' обхитряет ' + targetNameAcc + '.\r\n';
if(target.isEmotionAffected("happy")) {
if(!target._noStateMessage) {text += 'СКОРОСТЬ ' + target.name() +' упала.\r\n';}
if(!target._noStateMessage) {text += 'СКОРОСТЬ ' + targetNameGen +' упала.\r\n';}
else {text += parseNoStateChange(target.name(), "СКОРОСТЬ", "ниже!\r\n")}
}
text += hpDamageText;
@ -186,7 +186,7 @@ if (mpDam > 0) {
case 'SHUN': // SHUN
text = user.name() + ' избегает ' + targetNameAcc + '.\r\n';
if(target.isEmotionAffected("sad")) {
if(!target._noStateMessage) {text += 'ЗАЩИТА ' + target.name() + ' упала.\r\n';}
if(!target._noStateMessage) {text += 'ЗАЩИТА ' + targetNameGen + ' упала.\r\n';}
else {text += parseNoStateChange(target.name(), "ЗАЩИТА", "ниже!\r\n")}
}
text += hpDamageText;
@ -614,7 +614,7 @@ if (mpDam > 0) {
break;
case 'SMILE': // SMILE
text = user.name() + ' улыбнулся ' + targetNamePre + '!\r\n';
text = user.name() + ' улыбнулся ' + targetNameDat + '!\r\n';
if(!target._noStateMessage) {text += target.name() + ' уменьшает АТАКУ.';}
else {text += parseNoStateChange(target.name(), "АТАКА", "ниже!\r\n")}
break;
@ -1008,7 +1008,7 @@ if (mpDam > 0) {
case 'SNOW PILE ENGULF': //SNOW PILE ENGULF
text = user.name() + ' покрывает ' + targetNameAcc + ' снегом!\r\n';
text += user.name() + ' снижает АТАКУ.\r\n';
text += user.name() + ' снижает СКОРОСТЬ.\r\n';
text += user.name() + ' снижает ЗАЩИТУ.';
break;
@ -1421,7 +1421,7 @@ if (mpDam > 0) {
//HORSE HEAD//
case 'HORSE HEAD ATTACK': //HORSE HEAD ATTACK
text = user.name() + ' кусает ' + targetNameAcc + '\'s arm.\r\n';
text = user.name() + ' кусает руку ' + targetNameGen + '.\r\n';
text += hpDamageText;
break;

View file

@ -125,6 +125,48 @@ Window_OmoriFileInformation.prototype.refresh = function() {
this.contents.fillRect(0, 29, 108, 3, 'rgba(255, 255, 255, 1)')
};
// For compatibility with 1.0.7 and lower versions.
Scene_OmoriFile.prototype.onSelectInputOk = function() {
// Get Index
var index = this._commandWindow.index();
// Get Save File ID
var saveFileid = this.savefileId();
// If Save
if (index === 0) {
// If File Exists
if (StorageManager.exists(saveFileid)) {
// Show Prompt Window
this.showPromptWindow('Переписать этот файл?');
// Set Can select Flag to false
this._canSelect = false;
} else {
// Save The Game
this.saveGame();
};
} else {
// If File Exists
if (StorageManager.exists(saveFileid)) {
// Show Prompt Window
this.showPromptWindow('Загрузить файл?');
// Set Can select Flag to false
this._canSelect = false;
} else {
// Play Buzzer Sound
SoundManager.playBuzzer();
};
};
};
Window_OmoriFileCommand.prototype.makeCommandList = function () {
this.addCommand("СОХРАНИТЬ", 'save', this._canSave);
this.addCommand("ЗАГРУЗИТЬ", 'load', this._canLoad);
};
Window_OmoriFilePrompt.prototype.makeCommandList = function () {
this.addCommand("ДА", 'ok');
this.addCommand("НЕТ", 'cancel');
};
Window_OmoriFileCommand.prototype.initialize = function() {
// Original window X position: 42
Window_Command.prototype.initialize.call(this, 20, 28);
@ -320,7 +362,7 @@ Window_OmoriInputLetters.prototype.onNameOk = function() {
// ============================================================================
// OMORI RUS mod specific: Bad ending movie cover switcher.
// Switches between Russian cover and original cover of My Time by Bo en.
// Switches between Russian cover and original cover of My Time by Bo En.
// ============================================================================
(function() {
@ -728,7 +770,26 @@ Gamefall.JPWordWrap = Gamefall.JPWordWrap || {};
["СПАЛЬНЯ СОСЕДЕЙ","NEIGHBOR'S BEDROOM","オトナリベッドルーム","이웃의 침실","邻居的卧室"]
];
DataManager = class extends DataManager {
// For compatibility with 1.0.7 and lower versions.
if (typeof DataManager.convertNameToLanguage == 'undefined') {
DataManager.convertNameToLanguage = function(type, name) {
let myLanguageIndex = ['en', 'jp', 'kr', 'sc'].indexOf(LanguageManager.defaultLanguage());
if (myLanguageIndex != -1) {
let namesPerLanguage = type === 'actor'? this.actorNamesPerLanguage : type === "chapter" ? this.chapterNamesPerLanguage : this.locationNamesPerLanguage;
for (let entryNum = 0; entryNum < namesPerLanguage.length; entryNum++) {
for (let languageID = 0; languageID < namesPerLanguage[entryNum].length; languageID++) {
if (languageID == myLanguageIndex) continue;
if (name == namesPerLanguage[entryNum][languageID]) { // Name from other language detected
return namesPerLanguage[entryNum][myLanguageIndex];
};
};
};
};
return name;
}
}
DataManager = class extends DataManager {
static loadSavefileInfo(savefileId) {
var globalInfo = this.loadGlobalInfo();
if (globalInfo && globalInfo[savefileId]) {
@ -763,20 +824,23 @@ Gamefall.JPWordWrap = Gamefall.JPWordWrap || {};
// Patches for plugin: Omori Name Input
// ============================================================================
VirtualKeyboard.EN = {
default: [
"` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
"й ц у к е н г ш щ з х ъ \\",
"{lock} ф ы в а п р о л д ж э",
"я ч с м и т ь б ю . {confirm} {space}"
],
shift: [
"~ ! @ # $ % ^ & * ( ) _ + {bksp}",
"Й Ц У К Е Н Г Ш Щ З Х Ъ |",
"{lock} Ф Ы В А П Р О Л Д Ж Э",
"Я Ч С М И Т Ь Б Ю ? {confirm} {space}"
]
};
// VirtualKeyboard not exists in 1.0.7 and lower versions.
if (typeof VirtualKeyboard !== 'undefined') {
VirtualKeyboard.EN = {
default: [
"` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
"й ц у к е н г ш щ з х ъ \\",
"{lock} ф ы в а п р о л д ж э",
"я ч с м и т ь б ю . {confirm} {space}"
],
shift: [
"~ ! @ # $ % ^ & * ( ) _ + {bksp}",
"Й Ц У К Е Н Г Ш Щ З Х Ъ |",
"{lock} Ф Ы В А П Р О Л Д Ж Э",
"Я Ч С М И Т Ь Б Ю ? {confirm} {space}"
]
};
}
// ============================================================================

View file

@ -64,11 +64,10 @@ Game_Interpreter.prototype.placeTool = function() {
}
}
this.checkHardwareOrganization();
/*
console.log("Current Shelf: " + $gameVariables.value(812),
"Index: " + $gameVariables.value(814),
"Selected Item: " + $gameVariables.value(815),
"Currently Held Item: " + $gameVariables.value(813));*/
// console.log("Current Shelf: " + $gameVariables.value(812),
// "Index: " + $gameVariables.value(814),
// "Selected Item: " + $gameVariables.value(815),
// "Currently Held Item: " + $gameVariables.value(813));
}
Game_Interpreter.prototype.replaceTool = function() {
@ -81,10 +80,10 @@ Game_Interpreter.prototype.replaceTool = function() {
else if ($gameVariables.value(813) === LanguageManager.getMessageData("farawaytown_extras_hardwareminigame.message_7").text) $gameSystem.shelves[shelf][$gameVariables.value(814)] = 6;
else if ($gameVariables.value(813) === LanguageManager.getMessageData("farawaytown_extras_hardwareminigame.message_8").text) $gameSystem.shelves[shelf][$gameVariables.value(814)] = 7;
this.checkHardwareOrganization();
/*console.log("REPLACING " + "Current Shelf: " + $gameVariables.value(812),
"Index: " + $gameVariables.value(814),
"Selected Item: " + $gameVariables.value(815),
"Currently Held Item: " + $gameVariables.value(813));*/
// console.log("REPLACING " + "Current Shelf: " + $gameVariables.value(812),
// "Index: " + $gameVariables.value(814),
// "Selected Item: " + $gameVariables.value(815),
// "Currently Held Item: " + $gameVariables.value(813));
}
Game_Interpreter.prototype.returnTool = function() {
@ -221,11 +220,8 @@ Game_Character.prototype.getToolGraphic = function (shelfItem) {
//=============================================================================
var yin_WindowChoiceList_callOkHandlerShop = Window_ChoiceList.prototype.callOkHandler;
Window_ChoiceList.prototype.callOkHandler = function () {
const loc_yes = LanguageManager.getMessageData("XX_GENERAL.message_4").text
const loc_no = LanguageManager.getMessageData("XX_GENERAL.message_5").text
const nevermind = LanguageManager.getMessageData("farawaytown_extras_pizzaminigame.message_17").text
if ($gameSwitches.value(804) && this._list[this.index()].name !== loc_yes && this._list[this.index()].name !== loc_no) {
if (this._list[this.index()].name === nevermind) {
if ($gameSwitches.value(804) && this._list[this.index()].name !== "YES" && this._list[this.index()].name !== "NO") {
if (this._list[this.index()].name == "NEVERMIND") {
$gameMap._interpreter.command115();
} else {
$gameVariables.setValue(814, this.index());
@ -244,3 +240,19 @@ Window_ChoiceList.prototype.numVisibleRows = function () {
}
return yin_WindowChoiceList_numVisibleRowsHardware.call(this);
};
// Override new code from 1.0.8 for OMORI 1.0.7 and lower.
Window_ChoiceList.prototype.callOkHandler = function () {
const loc_yes = LanguageManager.getMessageData("XX_GENERAL.message_4").text
const loc_no = LanguageManager.getMessageData("XX_GENERAL.message_5").text
const nevermind = LanguageManager.getMessageData("farawaytown_extras_pizzaminigame.message_17").text
if ($gameSwitches.value(804) && this._list[this.index()].name !== loc_yes && this._list[this.index()].name !== loc_no) {
if (this._list[this.index()].name === nevermind) {
$gameMap._interpreter.command115();
} else {
$gameVariables.setValue(814, this.index());
$gameVariables.setValue(815, this._list[this.index()].name);
}
}
yin_WindowChoiceList_callOkHandlerShop.call(this);
};

View file

@ -36,7 +36,79 @@ Game_Interpreter.prototype.checkImages = function () {
}
Game_Interpreter.prototype.houseHints = function () {
return LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").houseHints
return {
1: ["Cans In The Yard", "Red PickupTruck", "Green Rug", "Cans By The Garbage", "RunDown Brown Roof", "Boarded Up Window", "Brick Front", "No Fence", "Roots In The Yard", "Plants On The Driveway", "Garbage Lined Up In The Front"],
2: ["Dark Green PickupTruck", "Purple Rug", "Stone Chimney In The Yellow Roof", "Yellow Door With Windows", "Windows In The Door"],
3: ["White Rug", "Dark Pink Door", "Tether Ball In The Yard", "Pink Roof", "One Pink Front Window", "Purple Flowers By The Window"],
4: ["Gray Rug", "Orange Door", "Cones In Front Of The Driveway", "Light Blue Roof", "Ladder By The Tree"],
//-----------------------------------------
5: ["Gray Car", "Large Rock In The Yard", "Flowers By The Large Rock", "Purple Rug", "Orange Roof", "Brick Front", "No Garbage Cans"],
6: ["White Door", "Dark Blue Roof With The Stone Chimney", "Beat Up Front", "Easel In The Yard", "Plants In The Yard"],
7: ["Red PickupTruck", "Light Yellow Door With Windows", "Boxes In The Side Yard", "Purple Flowers By The Yellow Window", "Dark Purple Rug", "No Garbage Can", "Red Roof", "No Fence"],
8: ["Purple Roof With A Chimney", "Messy Yard", "Brown Rug", "No Fence", "Ladder By The Door", "Hydrant Out Front", "Dark Red Door"],
//-----------------------------------------
9: ["Light Brown Roof", "Pink Door", "Gray PickupTruck", "No Fence"],
10: ["Yellow Roof", "Tires In The Yard", "White Door With No Windows", "Picnic Table On The Side", "Grill In The Yard"],
11: ["Blue Roof", "Light Brown Door", "Brown Rug", "Dog House", "Roots In The Yard"],
12: ["Light Green Roof", "Toys In The Yard", "Cans By The White Fence", "White Rug", "One Green Window", "Large Rock In The Yard", "Hydrant Out Front"],
//-----------------------------------------======================================================================================================================================================================================
13: ["Light By The Driveway", "Dark Green Rug", "Blue PickupTruck", "Brown Fence With Bushes", "Hydrant Out Front", "Purple Brick Chimney In A Dark Green Roof"],
14: ["Brown Roof", "Roots And Flowers In The Yard", "Tree Lined Entrance", "Dark Yellow Rug", "Dark Red Door", "White Garage Door"],
15: ["Blue Roof With The Blue Brick Chimney", "White Brick Front", "Green PickupTruck", "Garbage On The Left Side", "Hoops In The Yard", "Tether Ball", "Bushes By The Light Brown Garage Door"],
16: ["Pink Car In The Driveway", "Brown Roof With Dark Green Chimney", "Yellow Door With Windows", "Yellow Flowers In The Bushes"],
//-----------------------------------------
17: ["White Car", "Light Pink Garage Door", "Light Pink Rug", "White Door With Windows", "Dirt Patch By The Fence", "Light Gray Roof", "Flowers In The Yard", "Boxes By The Garage Door"],
18: ["Dark Brown Brick Roof", "Garage Door With No Windows", "Beat Up Fence", "Green PickupTruck", "Garbage Out Front", "Yellow Flowers In The Bushes", "Trees In The Yard", "Couch In The Garbage"],
19: ["Red Roof", "Messy Garbage On The Left Side", "Blue Rug", "Gray Door", "Rock Lined Driveway", "Bottles And Cans In The Yard", "Tree By The Door", "No Windows In The Garage Door", "Red Brick Chimney"],
20: ["Light Brown Roof", "Orange Door", "Garbage On The Side Of The Driveway", "Gray Car", "Brown Chimney", "Flowers Bushes Lined Driveway"],
//-----------------------------------------
21: ["Purple Roof", "Purple Chimney", "Pink Door", "Dark Red Garage Door", "Hydrant Out Front", "Dark Blue Rug", "Pink Car", "Birdhouse In The Yard", "Mailbox Out Front", "Flowers Boxes In The Yard", "Grill On The Right Side", "Wood Planks By The Trees"],
22: ["Dark Brown Door", "Dark Green Roof", "White Brick Front", "Plants By The Door", "Mulch On The Side Of The Yard", "Garbage By The Fence", "Dog House", "Purple Brick Chimney", "Hoops"],
23: ["Yellow Roof", "Work Table On The Side", "Tools In The Yard", "Yellow Rug", "Gray PickupTruck", "White Garage Door With Windows", "Tires In The Yard"],
24: ["Red PickupTruck", "Blue Roof", "Cones Out Front", "Yellow Door With Windows", "Flamingo", "Birdhouse", "Blue Brick Chimney"],
//-----------------------------------------======================================================================================================================================================================================
25: ["Purple Roof", "White Rug", "Flamingo And Trees On The Driveway", "Brown Fence On The Left Side", "Gray Stone Chimney", "One Pink Window", "Grill By The Picnic Table"],
26: ["Light Brown Roof", "Brown Door", "Hoops By The Brown Fence", "Purple Rug", "Two Black Garbage Cans", "Toys In The Yard", "Light Brown Brick Front", "Cones Out Front"],
27: ["Dark Brown Roof", "Sign Out Front", "Roots In The Yard", "Red Flowers By The Yellow Window"],
28: ["Flowers Lined Path", "Garbage On The Left And Right Side", "Two Green Garbage Cans On The Right", "White Roof", "White Door", "Hydrant Out Front", "White Stone Chimney"],
//-----------------------------------------
29: ["Yellow Roof", "Dark Red Door", "Brown Rug", "Garbage In The Front", "Tires In The Yard", "Ladder By The Door", "Gray PickupTruck", "Blue PickupTruck", "Wood Planks On The Side"],
30: ["White Fence", "Pink Car", "Flowers Lined Driveway", "Light Brown Roof", "Grill On The Left Side", "Dark Pink Door"],
31: ["Dark Brown Roof", "Swing", "Tether Ball", "Flowers In The Yard", "Garbage On The Dirt Patch", "Small Dirt Path", "Toys Out Front"],
32: ["Red Roof", "Gray Rug", "Orange Door", "Roots In The Yard", "Two Green Garbage Cans", "Beat Up Front", "Hydrant Out Front", "Ladder On The Wood Planks", "Gray Stone Chimney"],
//-----------------------------------------
33: ["Gray Roof", "Brick Front", "Purple Rug", "Ladder By The Door", "Two Garbage Cans", "Bottles By The Garbage", "Dog House", "Wood Planks In The Yard", "No Fence", "Gray PickupTruck Out Front"],
34: ["White Car Out Front", "Mailbox Out Front", "Cans By The Garbage Out Front", "Light Blue Roof", "Trees By The Entrance", "Light Red Door", "Hoops", "Light Green Rug"],
35: ["Yellow Car Out Front", "Red Flowers By The Window", "Flowers By The Small Path", "Mulch In The Yard", "Blue Roof", "Dark Blue Rug", "Trees In Front Of The White Fence"],
36: ["Hydrant Out Front", "No Fence", "Purple Flowers By The Pink Window", "Garbage On The Right Side By The Toys", "Pink Door", "White Roof", "Gray Car", "Car Toys In The Yard"],
}
}
Game_Interpreter.prototype.generateHouse = function (neighborhood) {
@ -68,15 +140,27 @@ Game_Interpreter.prototype.generateHouse = function (neighborhood) {
$gameSystem.pizza = [description1, description2];
var partPool = LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").partPool.slice()
var partPool = [
"This Pizza Goes Down The Street To The House With The ",
"Please Take This Pizza To The House With The ",
"Look For The House That Has The ",
"This Pizza Goes To The House With The ",
"Take The Pizza To The House That Has The ",
"Find The House With The ",
"Can You Find The House With The ",
"Take This Pizza To The House With The ",
"Take This Pizza Down The Street To The House With The ",
"Please Find The House With The ",
"This Pizza Goes To The House That Has The ",
"Can You Find The House That Has The "
]
$gameSystem.randomizeArray(partPool);
var part = partPool[0];
let desLink = LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").descriptionLink
var text = part + $gameSystem.pizza[0] + desLink + $gameSystem.pizza[1];
let theNo = LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").theNo
if (text.contains(theNo[0])) {
text = text.replace(theNo[0], theNo[1]);
var text = part + $gameSystem.pizza[0] + " And The " + $gameSystem.pizza[1];
if (text.contains("The No")) {
text = text.replace("The No", "No");
}
return text;
@ -220,3 +304,50 @@ Game_Character.prototype.getRandomNPCGraphic = function () {
this._pattern = this._originalPattern = frame % 3;
this._priorityType = 2;
}
// Override new code from 1.0.8 for OMORI 1.0.7 and lower.
Game_Interpreter.prototype.houseHints = function () {
return LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").houseHints;
}
// Override new code from 1.0.8 for OMORI 1.0.7 and lower.
Game_Interpreter.prototype.generateHouse = function (neighborhood) {
var neighborhoodHouses = {
1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
2: [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
3: [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36]
}
var houseHintsPt1 = this.houseHints();
var chosenHouse = $gameSystem.randomizeArray(neighborhoodHouses[neighborhood])[0];
while (!chosenHouse || $gameSystem._chosenHouses.contains(chosenHouse)) {
chosenHouse = $gameSystem.randomizeArray(neighborhoodHouses[neighborhood])[0];
}
$gameSystem._chosenHouses.push(chosenHouse);
var wordPool = houseHintsPt1[chosenHouse];
$gameSystem.randomizeArray(wordPool);
var description1 = wordPool[0];
wordPool.splice(0, 1);
$gameSystem.randomizeArray(wordPool);
var description2 = wordPool[0];
wordPool.splice(0, 1);
$gameSystem.pizza = [description1, description2];
var partPool = LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").partPool.slice()
$gameSystem.randomizeArray(partPool);
var part = partPool[0];
let desLink = LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").descriptionLink
var text = part + $gameSystem.pizza[0] + desLink + $gameSystem.pizza[1];
let theNo = LanguageManager.getMessageData("XX_BLUE.Yin_Pizza_Delivery").theNo
if (text.contains(theNo[0])) {
text = text.replace(theNo[0], theNo[1]);
}
return text;
}