0.14.1: plot borders are shown with the surveyor's tablet in hand, not the citizen guide
The tablet is the land tool, so the borders of nearby plots belong with it. Tutorial lines and the tablet's tooltip say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
caeca58256
commit
d83892326f
+3
-3
@@ -818,11 +818,11 @@ hash = "db4c4a8ab49265f6e8e456f495800ea148b133b18a3242aabca30b98ab7f784f"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_plots.js"
|
file = "kubejs/client_scripts/createrp_plots.js"
|
||||||
hash = "2a4686d252bd289fd99bde461bdfe3e2215cf35640f36e0610737730016ca2a0"
|
hash = "aa11368f0f4db4883e8231f6c4a65095af2c38377c9cca362726f14524f3d0eb"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_ponder.js"
|
file = "kubejs/client_scripts/createrp_ponder.js"
|
||||||
hash = "3bde91bbaaa243ebe556357eb68e0e0f21f48dff67f80a7e7d638b59c2d02f28"
|
hash = "9f862adad6c97ea4d1aba3f333a6f42bfc5fd921d2f960af365e293211492b39"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_survey.js"
|
file = "kubejs/client_scripts/createrp_survey.js"
|
||||||
@@ -830,7 +830,7 @@ hash = "5c170dc3cca31ab560eec9ca326116ee4f666ccd800a79a1c044c4b90f4f8288"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/startup_scripts/createrp_items.js"
|
file = "kubejs/startup_scripts/createrp_items.js"
|
||||||
hash = "05f1daa03e00a7429c51a7d8239c8fde894f7faff64cbb6ca978956ca1810497"
|
hash = "049e902a9d12b5811f358d40a2a7e030968e34853cf83a957577cb4bc65d92ff"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "mods/3dskinlayers.pw.toml"
|
file = "mods/3dskinlayers.pw.toml"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Create RP — межі ділянок рамками в стилі Create.
|
// Create RP — межі ділянок рамками в стилі Create.
|
||||||
// Показуються, поки в руці «Довідник громадянина» (усі ділянки поблизу), і кілька секунд після входу на ділянку
|
// Показуються, поки в руці «Планшет землеміра» (усі ділянки поблизу), і кілька секунд після входу на ділянку
|
||||||
// (лише вона). Дані приходять із сервера каналом createrp_plots; малює Outliner, яким Create малює виділення.
|
// (лише вона). Дані приходять із сервера каналом createrp_plots; малює Outliner, яким Create малює виділення.
|
||||||
// Rhino: без const/let усередині циклів і try — лише var.
|
// Rhino: без const/let усередині циклів і try — лише var.
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ const WALL_HALF = 1 / 16 // пів товщини стіни: у пло
|
|||||||
|
|
||||||
let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] }
|
let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] }
|
||||||
let rpByChunk = {} // "cx,cz" -> індекс у rpPlots
|
let rpByChunk = {} // "cx,cz" -> індекс у rpPlots
|
||||||
// державну землю при вході не підсвічуємо — її видно лише з довідником у руці
|
// державну землю при вході не підсвічуємо — її видно лише з планшетом землеміра в руці
|
||||||
const RP_QUIET = { reserved: true, road: true, road_built: true, state_mine: true, state: true }
|
const RP_QUIET = { reserved: true, road: true, road_built: true, state_mine: true, state: true }
|
||||||
let rpHere = ''
|
let rpHere = ''
|
||||||
let rpShowUntil = 0
|
let rpShowUntil = 0
|
||||||
@@ -84,7 +84,7 @@ function rpDraw () {
|
|||||||
for (var k = 0; k < cells.length; k++) if (cells[k][0] == cx && cells[k][1] == cz) { here = rpPlots[n].id; break }
|
for (var k = 0; k < cells.length; k++) if (cells[k][0] == cx && cells[k][1] == cz) { here = rpPlots[n].id; break }
|
||||||
}
|
}
|
||||||
if (here !== rpHere) { rpHere = here; if (here !== '') rpShowUntil = rpTick + SHOW_TICKS }
|
if (here !== rpHere) { rpHere = here; if (here !== '') rpShowUntil = rpTick + SHOW_TICKS }
|
||||||
var holding = String(player.mainHandItem.id) === 'kubejs:citizen_guide' || String(player.offHandItem.id) === 'kubejs:citizen_guide'
|
var holding = String(player.mainHandItem.id) === 'kubejs:land_survey' || String(player.offHandItem.id) === 'kubejs:land_survey'
|
||||||
if (!holding && rpTick >= rpShowUntil) return
|
if (!holding && rpTick >= rpShowUntil) return
|
||||||
var outliner = RpOutliner.getInstance()
|
var outliner = RpOutliner.getInstance()
|
||||||
for (var i = 0; i < rpPlots.length; i++) {
|
for (var i = 0; i < rpPlots.length; i++) {
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ function landScene(scene, util) {
|
|||||||
say(scene, 70, 'Біля спавну й доріг дозволу не дають', [3.5, 2, 3.5], PonderPalette.RED)
|
say(scene, 70, 'Біля спавну й доріг дозволу не дають', [3.5, 2, 3.5], PonderPalette.RED)
|
||||||
say(scene, 70, 'Бури Create теж копають лише з дозволом', [3.5, 2, 3.5])
|
say(scene, 70, 'Бури Create теж копають лише з дозволом', [3.5, 2, 3.5])
|
||||||
|
|
||||||
say(scene, 70, 'Візьми довідник у руку — побачиш межі ділянок', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
|
say(scene, 70, 'Візьми планшет землеміра в руку — побачиш межі ділянок', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
|
||||||
say(scene, 70, 'Блакитна межа — твоя, сіра — чужа, червона — державна', [2.5, 2.5, 2.5])
|
say(scene, 70, 'Блакитна межа — твоя, сіра — чужа, червона — державна', [2.5, 2.5, 2.5])
|
||||||
say(scene, 70, 'Дорога: помаранчева — ще будується, синя — готова', [2.5, 2.5, 2.5])
|
say(scene, 70, 'Дорога: помаранчева — ще будується, синя — готова', [2.5, 2.5, 2.5])
|
||||||
}
|
}
|
||||||
@@ -359,7 +359,7 @@ function roadsScene(scene, util) {
|
|||||||
scene.idle(10)
|
scene.idle(10)
|
||||||
say(scene, 70, 'Кожен новий блок дороги — 0,3 ¤', [2.5, 1.5, 2.5], PonderPalette.GREEN, true)
|
say(scene, 70, 'Кожен новий блок дороги — 0,3 ¤', [2.5, 1.5, 2.5], PonderPalette.GREEN, true)
|
||||||
say(scene, 80, 'Покриття: кам\'яна цегла, гладкий камінь, андезит, плитка Create', [2.5, 1.5, 2.5])
|
say(scene, 80, 'Покриття: кам\'яна цегла, гладкий камінь, андезит, плитка Create', [2.5, 1.5, 2.5])
|
||||||
say(scene, 70, 'Недобудовані дороги видно з довідником у руці', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
|
say(scene, 70, 'Недобудовані дороги видно з планшетом землеміра в руці', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
|
||||||
say(scene, 70, 'Помаранчева межа — тут ще треба мостити', [2.5, 2.5, 2.5])
|
say(scene, 70, 'Помаранчева межа — тут ще треба мостити', [2.5, 2.5, 2.5])
|
||||||
say(scene, 80, 'Гроші за всі твої блоки — коли дорогу приймуть', [2.5, 2.5, 2.5], PonderPalette.GREEN)
|
say(scene, 80, 'Гроші за всі твої блоки — коли дорогу приймуть', [2.5, 2.5, 2.5], PonderPalette.GREEN)
|
||||||
say(scene, 70, 'Готова дорога стає синьою', [2.5, 2.5, 2.5])
|
say(scene, 70, 'Готова дорога стає синьою', [2.5, 2.5, 2.5])
|
||||||
|
|||||||
@@ -17,4 +17,5 @@ StartupEvents.registry('item', event => {
|
|||||||
.maxStackSize(1)
|
.maxStackSize(1)
|
||||||
.tooltip('§7ПКМ по землі — кут території, ще раз — другий кут')
|
.tooltip('§7ПКМ по землі — кут території, ще раз — другий кут')
|
||||||
.tooltip('§7Третій ПКМ — оформити · Shift+ПКМ — скинути')
|
.tooltip('§7Третій ПКМ — оформити · Shift+ПКМ — скинути')
|
||||||
|
.tooltip('§7У руці — видно межі ділянок поруч')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
name = "Create RP"
|
name = "Create RP"
|
||||||
author = "Pinecraft-CreateRP"
|
author = "Pinecraft-CreateRP"
|
||||||
version = "0.14.0"
|
version = "0.14.1"
|
||||||
pack-format = "packwiz:1.1.0"
|
pack-format = "packwiz:1.1.0"
|
||||||
|
|
||||||
[index]
|
[index]
|
||||||
file = "index.toml"
|
file = "index.toml"
|
||||||
hash-format = "sha256"
|
hash-format = "sha256"
|
||||||
hash = "72430bb5e5eb2314ea356938ef1df42244645ccc1380c2502839c6c651a6cec3"
|
hash = "b3c0cb9c62ef91eeb45ee62166e0f644a4a52892b3b3c1c1c80733d7983cf40a"
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
minecraft = "1.21.1"
|
minecraft = "1.21.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user