diff --git a/www/data/Items.json b/www/data/Items.json index b724cf7..6190c63 100644 --- a/www/data/Items.json +++ b/www/data/Items.json @@ -225,7 +225,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Mask", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -245,7 +245,7 @@ "type": 0, "variance": 20 }, - "description": "A candle that seems to have withstood\nthe test of time. Its short wick is\nblackened, and the white wax has faded,\nbut if lit, it would likely remember its\npurpose.", + "description": "A candle that seems to have withstood the test of time. Its\nshort wick is blackened, and the white wax has faded, but if\nlit, it would likely remember its purpose.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -271,7 +271,7 @@ "type": 0, "variance": 20 }, - "description": "A matchstick painted red. Once holding\nmany fires, this phosphorous sibling\nmight offer some help in dispelling\ndarkness when struck.", + "description": "A matchstick painted red. Once holding many fires, this\nphosphorous sibling might offer some help in dispelling\ndarkness when struck.", "effects": [{ "code": 44, "dataId": 27, "value1": 1, "value2": 0 }], "hitType": 0, "iconIndex": 0, @@ -297,7 +297,7 @@ "type": 0, "variance": 20 }, - "description": "A worn-out wooden bucket. The robustness\nhas been lost from the bucket that has\nheld water many times, and it remains\nforgotten, no longer serving its purpose\nof quenching thirst.", + "description": "A worn-out wooden bucket. The robustness has been lost from\nthe bucket that has held water many times, and it remains\nforgotten, no longer serving its purpose of quenching\nthirst.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -329,7 +329,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Small Plate", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -349,7 +349,7 @@ "type": 0, "variance": 20 }, - "description": "Hand-knitted rope. Although it is old,\nthe skillfully twisted fibers are\ndurable and capable of realizing the\nwish to withstand weight and the hope of\ntying knots.", + "description": "Hand-knitted rope. Although it is old, the skillfully\ntwisted fibers are durable and capable of realizing the wish\nto withstand weight and the hope of tying knots.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -375,7 +375,7 @@ "type": 0, "variance": 20 }, - "description": "A bucket attached to a rope, a tsurube.\nThe two tools tied together might\nremember the old days when they were\nimmersed in well water.", + "description": "A bucket attached to a rope, a tsurube. The two tools tied\ntogether might remember the old days when they were immersed\nin well water.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -407,7 +407,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Dish filled with water", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -433,7 +433,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Rusted Key", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -459,7 +459,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Hoe", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -479,7 +479,7 @@ "type": 0, "variance": 20 }, - "description": "A beautiful tortoiseshell hair ornament.\nIt was meant to be a gift for someone,\nbut it has faded a bit because it has\nnever been used and has been sleeping.", + "description": "A beautiful tortoiseshell hair ornament. It was meant to be\na gift for someone, but it has faded a bit because it has\nnever been used and has been sleeping.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -505,7 +505,7 @@ "type": 0, "variance": 20 }, - "description": "Iron scissors. A blade made from old\niron, the sharpness is dull, but it is\nwell known since ancient times that\nscissors have more than one use.", + "description": "Iron scissors. A blade made from old iron, the sharpness is\ndull, but it is well known since ancient times that scissors\nhave more than one use.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -531,7 +531,7 @@ "type": 0, "variance": 20 }, - "description": "Incense in an old, musty sachet. The\nsmall amount of fragrant wood left in\nthe tattered bag faintly retains a\nnostalgic scent.", + "description": "Incense in an old, musty sachet. The small amount of\nfragrant wood left in the tattered bag faintly retains a\nnostalgic scent.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -563,7 +563,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Ancient Letter", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 2, "price": 0, "repeats": 1, @@ -583,7 +583,7 @@ "type": 0, "variance": 20 }, - "description": "An old amulet bag. It contains a\ntalisman wishing for safety and\nsomeone's name, but it is stained with\nblood, indicating that it failed to\nprotect its owner.", + "description": "An old amulet bag. It contains a talisman wishing for safety\nand someone's name, but it is stained with blood, indicating\nthat it failed to protect its owner.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -615,7 +615,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Old Flashlight (Without Batteries)", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -635,7 +635,7 @@ "type": 0, "variance": 20 }, - "description": "A dry cell battery left behind by a\nghost who left their feelings behind.\nFor some reason, it's not dirty and\nfeels as if it was left behind for\nsomeone.", + "description": "A dry cell battery left behind by a ghost who left their\nfeelings behind. For some reason, it's not dirty and feels\nas if it was left behind for someone.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -661,13 +661,13 @@ "type": 0, "variance": 20 }, - "description": "An old flashlight. The handle is\ninscribed with the mantra of Dainichi\nNyorai, and it can illuminate things\nthat are invisible to the eye. However,\nlight is easily seen from the darkness.", + "description": "An old flashlight. The handle is inscribed with the mantra\nof Dainichi Nyorai, and it can illuminate things that are\ninvisible to the eye. However, light is easily seen from the\ndarkness.", "effects": [], "hitType": 0, "iconIndex": 0, "itypeId": 1, "name": "Old Pocket Flashlight", - "note": "HideItemNumber\n\n\n\n\n古びた懐中電灯(電池なし): 1\nきれいな乾電池: 1\n", + "note": "HideItemNumber\n\n\n\n\n古びた懐中電灯(電池なし): 1\nきれいな乾電池: 1\n", "occasion": 3, "price": 0, "repeats": 1, @@ -687,7 +687,7 @@ "type": 0, "variance": 20 }, - "description": "Covered in rust. It would probably break\nafter one use.", + "description": "Covered in rust. It would probably break after one use.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -719,7 +719,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Soul-Collecting Talisman", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -745,7 +745,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Remnant Flames of Admiration", - "note": "\n\n", + "note": "\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -765,7 +765,7 @@ "type": 0, "variance": 20 }, - "description": "A doll's torso clad in a kimono of\nJapanese style. It is faintly warm and\nsmaller than usual. It seems to be\nmodeled after a girl, but...", + "description": "A doll's torso clad in a kimono of Japanese style. It is\nfaintly warm and smaller than usual. It seems to be modeled\nafter a girl, but...", "effects": [], "hitType": 0, "iconIndex": 0, @@ -797,7 +797,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Rusted Kodachi", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -823,7 +823,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Rusted Iron Key", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -849,7 +849,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Crossing the Suspension Bridge", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -875,7 +875,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Singing Princess", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -901,7 +901,7 @@ "iconIndex": 0, "itypeId": 1, "name": "King's Tail", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -927,7 +927,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Prince of Chocolate", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -953,7 +953,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Blue Mermaid Princess", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -979,7 +979,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Match and Girl", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1005,7 +1005,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Bat's Friend", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1031,7 +1031,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Happy Prince", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1057,7 +1057,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Little Rabbit", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1083,7 +1083,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Right Arm", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1109,7 +1109,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Left Arm", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1135,7 +1135,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Right Leg", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1161,7 +1161,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Left Leg", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1187,7 +1187,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Head", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1213,7 +1213,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Bath Set", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1233,7 +1233,7 @@ "type": 0, "variance": 20 }, - "description": "A worn-out dry cell battery. There's\nonly one, but it might still be able to\npower a small device.", + "description": "A worn-out dry cell battery. There's only one, but it might\nstill be able to power a small device.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1265,7 +1265,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Strawberry Cake", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1291,7 +1291,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Birthday Candle", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1311,7 +1311,7 @@ "type": 0, "variance": 20 }, - "description": "A cake decorated with six candles and\nstrawberries. The child who was supposed\nto be celebrated never got to see a\nbirthday cake until the end.", + "description": "A cake decorated with six candles and strawberries. The\nchild who was supposed to be celebrated never got to see a\nbirthday cake until the end.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1343,7 +1343,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Remote Control", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1363,7 +1363,7 @@ "type": 0, "variance": 20 }, - "description": "A remote control found in a private\nhouse. If you insert batteries and turn\nit on near the air conditioner, you can\nalleviate the scorching heat of the\nroom.", + "description": "A remote control found in a private house. If you insert\nbatteries and turn it on near the air conditioner, you can\nalleviate the scorching heat of the room.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1389,7 +1389,7 @@ "type": 0, "variance": 20 }, - "description": "A small ignition device found in the\ngarden. The fuel is scant, but there is\nenough left for a few uses.", + "description": "A small ignition device found in the garden. The fuel is\nscant, but there is enough left for a few uses.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1421,7 +1421,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Red Key of Paired Wings", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1447,7 +1447,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Blue Key of Paired Wings", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1473,7 +1473,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Eye", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1499,7 +1499,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Doll's Heart", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1525,7 +1525,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Small Cross", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1545,7 +1545,7 @@ "type": 0, "variance": 20 }, - "description": "A sickle made for harvesting rice. The\nstill sharp blade is useful for\nobtaining a bountiful harvest.", + "description": "A sickle made for harvesting rice. The still sharp blade is\nuseful for obtaining a bountiful harvest.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1571,7 +1571,7 @@ "type": 0, "variance": 20 }, - "description": "The harvest of rice grown by infusing\nthe power of divine energy into withered\nrice plants. With proper processing, it\nwould likely become brown rice suitable\nfor consumption.", + "description": "The harvest of rice grown by infusing the power of divine\nenergy into withered rice plants. With proper processing, it\nwould likely become brown rice suitable for consumption.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1597,7 +1597,7 @@ "type": 0, "variance": 20 }, - "description": "Leaves of mugwort that were growing wild\noutside a private house. They are fresh\nand green, but inedible as they are.", + "description": "Leaves of mugwort that were growing wild outside a private\nhouse. They are fresh and green, but inedible as they are.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1623,7 +1623,7 @@ "type": 0, "variance": 20 }, - "description": "Shiitake mushrooms that were growing\nfrom a decayed tree. They have grown\nsplendidly, but they seem inedible\nwithout cooking.", + "description": "Shiitake mushrooms that were growing from a decayed tree.\nThey have grown splendidly, but they seem inedible without\ncooking.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1649,7 +1649,7 @@ "type": 0, "variance": 20 }, - "description": "A brown rice porridge filled with\nmugwort and shiitake mushrooms. The\nsteamy bowl emits an appetizing aroma of\nnew rice.", + "description": "A brown rice porridge filled with mugwort and shiitake\nmushrooms. The steamy bowl emits an appetizing aroma of new\nrice.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1675,7 +1675,7 @@ "type": 0, "variance": 20 }, - "description": "A rice ball wrapped in beautiful bamboo\nleaves. Luxuriously made with white\nrice, it feels imbued with certain faith\nand prayer.", + "description": "A rice ball wrapped in beautiful bamboo leaves. Luxuriously\nmade with white rice, it feels imbued with certain faith and\nprayer.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1707,7 +1707,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Prayer Tachi (or Prayer Long Sword)", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1733,7 +1733,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Vermilion Comb", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1753,7 +1753,7 @@ "type": 0, "variance": 20 }, - "description": "A heavy brass key with a solid build.\nIt's terribly cold but seems sturdy\nenough to open a strong door.", + "description": "A heavy brass key with a solid build. It's terribly cold but\nseems sturdy enough to open a strong door.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1785,7 +1785,7 @@ "iconIndex": 0, "itypeId": 1, "name": "Stainless Key", - "note": "HideItemNumber\n\n", + "note": "HideItemNumber\n\n", "occasion": 3, "price": 0, "repeats": 1, @@ -1805,7 +1805,7 @@ "type": 0, "variance": 20 }, - "description": "A well-made key. It has black and white\ndecorative cords attached, which somehow\nremind one of a whaling curtain.", + "description": "A well-made key. It has black and white decorative cords\nattached, which somehow remind one of a whaling curtain.", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1831,7 +1831,7 @@ "type": 0, "variance": 20 }, - "description": "A large key made of iron. It is heavy,\nbut despite its old appearance, it is\nnot rusty at all. What was this key\nprotecting?", + "description": "A large key made of iron. It is heavy, but despite its old\nappearance, it is not rusty at all. What was this key\nprotecting?", "effects": [], "hitType": 0, "iconIndex": 0, @@ -1857,7 +1857,7 @@ "type": 0, "variance": 20 }, - "description": "A key made of silver. It is decorated\nwith extremely fine details, and a\ncrescent moon pattern is engraved on it.", + "description": "A key made of silver. It is decorated with extremely fine\ndetails, and a crescent moon pattern is engraved on it.", "effects": [], "hitType": 0, "iconIndex": 0, diff --git a/www/js/plugins.js b/www/js/plugins.js index c167f36..84851f8 100644 --- a/www/js/plugins.js +++ b/www/js/plugins.js @@ -156,7 +156,7 @@ var $plugins = [ "Description Wrap": "false", "---フォント---": "", "Font Name": "GameFont", - "Font Size": "28", + "Font Size": "20", "Font Size Change": "12", "Font Changed Max": "96", "Font Changed Min": "12", diff --git a/www/js/plugins/DescriptionExtend.js b/www/js/plugins/DescriptionExtend.js index b0584a1..54476d4 100644 --- a/www/js/plugins/DescriptionExtend.js +++ b/www/js/plugins/DescriptionExtend.js @@ -176,7 +176,7 @@ } var extendText = getMetaValues(item, ["拡張説明", "ExtendDesc"]); if (extendText) { - this.setText( + this.setTextItem( (param.swapDescription ? "" : this._text + "\n") + extendText ); } diff --git a/www/js/rpg_windows.js b/www/js/rpg_windows.js index 304c7ba..63c324a 100644 --- a/www/js/rpg_windows.js +++ b/www/js/rpg_windows.js @@ -275,6 +275,22 @@ Window_Base.prototype.drawTextEx = function (text, x, y) { } }; +Window_Base.prototype.drawTextExItem = function (text, x, y) { + if (text) { + var textState = { index: 0, x: x, y: y, left: x }; + textState.text = this.convertEscapeCharacters(text); + textState.height = this.calcTextHeight(textState, false); + this.resetFontSettings(); + this.contents.fontSize = 24 + while (textState.index < textState.text.length) { + this.processCharacter(textState); + } + return textState.x - x; + } else { + return 0; + } +}; + Window_Base.prototype.convertEscapeCharacters = function (text) { text = text.replace(/\\/g, "\x1b"); text = text.replace(/\x1b\x1b/g, "\\"); @@ -1543,12 +1559,19 @@ Window_Help.prototype.setText = function (text) { } }; +Window_Help.prototype.setTextItem = function (text) { + if (this._text !== text) { + this._text = text; + this.refreshItem(); + } +}; + Window_Help.prototype.clear = function () { this.setText(""); }; Window_Help.prototype.setItem = function (item) { - this.setText(item ? item.description : ""); + this.setTextItem(item ? item.description : ""); }; Window_Help.prototype.refresh = function () { @@ -1556,6 +1579,11 @@ Window_Help.prototype.refresh = function () { this.drawTextEx(this._text, this.textPadding(), 0); }; +Window_Help.prototype.refreshItem = function () { + this.contents.clear(); + this.drawTextExItem(this._text, this.textPadding(), 0); +}; + //----------------------------------------------------------------------------- // Window_Gold //