Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
579fb9c5be | ||
|
|
fd09077816 | ||
|
|
cd912171ec | ||
|
|
c410ff46d0 | ||
|
|
c79b4acb92 | ||
|
|
696cfb818b |
BIN
game_godot/TinMerezhi.exe
(Stored with Git LFS)
BIN
game_godot/TinMerezhi.exe
(Stored with Git LFS)
Binary file not shown.
105
itch/devlog/05_v1.0.92-v1.0.93.md
Normal file
105
itch/devlog/05_v1.0.92-v1.0.93.md
Normal file
@@ -0,0 +1,105 @@
|
||||
# Допис 5 журналу розробки (v1.0.92 – v1.0.93)
|
||||
|
||||
**Title:** Оновлення v1.0.93: гра в браузері, жива мережа і торг за контракти / Update v1.0.93: play in the browser, a living network and contract haggling
|
||||
**Post type:** General Update
|
||||
**Tags:** update, browser, gameplay, new features
|
||||
**Languages:** Українська, English (повний переклад)
|
||||
**Cover image:** itch/cover_630x500.png або скріншот гри в браузері
|
||||
|
||||
## Content
|
||||
|
||||
Найпростіше вставити через кнопку `<>` (джерело HTML) у редакторі itch, тоді списки й заголовки збережуться. Перед збереженням ОБОВ'ЯЗКОВО вийди з режиму `<>`, інакше itch пише "body: expected text".
|
||||
|
||||
```html
|
||||
<h2>Що нового в останніх версіях</h2>
|
||||
|
||||
<p>Тепер у Тінь Мережі можна грати просто на сторінці itch.io, нічого не завантажуючи. А сама мережа стала живішою: вона змінюється, поки тебе немає, стежить за гучними хакерами й дозволяє торгуватися із замовниками.</p>
|
||||
|
||||
<h3>Гра в браузері</h3>
|
||||
<ul>
|
||||
<li>Гру можна запустити прямо на сторінці itch.io, без завантаження exe.</li>
|
||||
<li>Збереження в браузері окремі від Windows-версії й не зникають після перезавантаження сторінки.</li>
|
||||
<li>Онлайн-рекорди працюють і з браузера.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Мережа живе без тебе</h3>
|
||||
<ul>
|
||||
<li>Після перерви від години й довше в мережі стається 1–3 події: вузол починають прослуховувати, адмін міняє пароль або давно не чіпаний сервер пропонує контракт з премією.</li>
|
||||
<li>Прослухані вузли 👂: після гучної сесії, коли трасування перевалило за половину, вузол маршруту можуть почати прослуховувати. Через нього трасування росте швидше.</li>
|
||||
<li><code>route auto</code> оминає прослухані вузли, а <code>connect</code> і <code>wipe</code> знімають жучок.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Торг і аванс</h3>
|
||||
<ul>
|
||||
<li><code>contract haggle</code>: спробуй виторгувати на чверть більшу оплату. Шанс залежить від твого звання, але замовник може й піти.</li>
|
||||
<li><code>contract advance</code>: 30% оплати наперед, якщо тобі довіряють.</li>
|
||||
<li>Замовники пам'ятають зірвані контракти, і з такою репутацією торгуватися важче.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Поступовий інтерфейс</h3>
|
||||
<ul>
|
||||
<li>Нова гра починається з голого терміналу: мапа з'являється після першого <code>scan</code>, кнопки після першого зламу.</li>
|
||||
<li>У старих збереженнях усе видно як і раніше.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Трасування, яке видно краєм ока</h3>
|
||||
<ul>
|
||||
<li>Шкала трасування «розжарюється» від холодного фіолетового до білого, тож небезпеку помічаєш, навіть не дивлячись на цифри.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Онлайн-рекорди</h3>
|
||||
<ul>
|
||||
<li>Сезони Нескінченної мережі по 6 тижнів: кожен сезон таблиця починається з нуля.</li>
|
||||
<li>Стіна ганьби для хакерів, яких арештували остаточно. Обидві вкладки в команді <code>top</code>.</li>
|
||||
</ul>
|
||||
|
||||
<p>Windows-версія оновлюється в грі командою <code>update</code>, а браузерна завжди найновіша. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>English</h2>
|
||||
|
||||
<h2>What's new in recent versions</h2>
|
||||
|
||||
<p>You can now play Shadow Net right on the itch.io page without downloading anything. And the network itself has come alive: it changes while you're away, keeps an eye on noisy hackers and lets you haggle with clients.</p>
|
||||
|
||||
<h3>Play in the browser</h3>
|
||||
<ul>
|
||||
<li>The game can be launched right on the itch.io page, without downloading the exe.</li>
|
||||
<li>Browser saves are separate from the Windows version and survive a page reload.</li>
|
||||
<li>Online records work from the browser too.</li>
|
||||
</ul>
|
||||
|
||||
<h3>The network lives on without you</h3>
|
||||
<ul>
|
||||
<li>After a break of an hour or more, 1–3 things happen in the network: a node gets tapped, an admin changes a password, or a long-untouched server offers a premium contract.</li>
|
||||
<li>Tapped nodes 👂: after a noisy session where the trace went past half, a route node may get tapped. Trace grows faster through it.</li>
|
||||
<li><code>route auto</code> skips tapped nodes, and <code>connect</code> and <code>wipe</code> remove the bug.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Haggling and advances</h3>
|
||||
<ul>
|
||||
<li><code>contract haggle</code>: try to bargain for a quarter more pay. The chance depends on your rank, but the client may walk away.</li>
|
||||
<li><code>contract advance</code>: 30% of the pay upfront if they trust you.</li>
|
||||
<li>Clients remember broken contracts, and with that reputation haggling gets harder.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Gradual interface</h3>
|
||||
<ul>
|
||||
<li>A new game starts with a bare terminal: the map appears after your first <code>scan</code>, the buttons after your first crack.</li>
|
||||
<li>Old saves show everything as before.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Trace you can see at a glance</h3>
|
||||
<ul>
|
||||
<li>The trace bar heats up from cold violet to white-hot, so you notice danger without even looking at the numbers.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Online records</h3>
|
||||
<ul>
|
||||
<li>6-week Endless Network seasons: each season the leaderboard starts from zero.</li>
|
||||
<li>A Wall of Shame for hackers busted for good. Both tabs are in the <code>top</code> command.</li>
|
||||
</ul>
|
||||
|
||||
<p>The Windows version updates in game with the <code>update</code> command, and the browser version is always the latest. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!</p>
|
||||
```
|
||||
79
itch/devlog/05_v1.0.92-v1.0.93.txt
Normal file
79
itch/devlog/05_v1.0.92-v1.0.93.txt
Normal file
@@ -0,0 +1,79 @@
|
||||
Що нового в останніх версіях
|
||||
|
||||
Тепер у Тінь Мережі можна грати просто на сторінці itch.io, нічого не завантажуючи. А сама мережа стала живішою: вона змінюється, поки тебе немає, стежить за гучними хакерами й дозволяє торгуватися із замовниками.
|
||||
|
||||
Гра в браузері
|
||||
|
||||
• Гру можна запустити прямо на сторінці itch.io, без завантаження exe.
|
||||
• Збереження в браузері окремі від Windows-версії й не зникають після перезавантаження сторінки.
|
||||
• Онлайн-рекорди працюють і з браузера.
|
||||
|
||||
Мережа живе без тебе
|
||||
|
||||
• Після перерви від години й довше в мережі стається 1–3 події: вузол починають прослуховувати, адмін міняє пароль або давно не чіпаний сервер пропонує контракт з премією.
|
||||
• Прослухані вузли 👂: після гучної сесії, коли трасування перевалило за половину, вузол маршруту можуть почати прослуховувати. Через нього трасування росте швидше.
|
||||
• route auto оминає прослухані вузли, а connect і wipe знімають жучок.
|
||||
|
||||
Торг і аванс
|
||||
|
||||
• contract haggle: спробуй виторгувати на чверть більшу оплату. Шанс залежить від твого звання, але замовник може й піти.
|
||||
• contract advance: 30% оплати наперед, якщо тобі довіряють.
|
||||
• Замовники пам'ятають зірвані контракти, і з такою репутацією торгуватися важче.
|
||||
|
||||
Поступовий інтерфейс
|
||||
|
||||
• Нова гра починається з голого терміналу: мапа з'являється після першого scan, кнопки після першого зламу.
|
||||
• У старих збереженнях усе видно як і раніше.
|
||||
|
||||
Трасування, яке видно краєм ока
|
||||
|
||||
• Шкала трасування «розжарюється» від холодного фіолетового до білого, тож небезпеку помічаєш, навіть не дивлячись на цифри.
|
||||
|
||||
Онлайн-рекорди
|
||||
|
||||
• Сезони Нескінченної мережі по 6 тижнів: кожен сезон таблиця починається з нуля.
|
||||
• Стіна ганьби для хакерів, яких арештували остаточно. Обидві вкладки в команді top.
|
||||
|
||||
Windows-версія оновлюється в грі командою update, а браузерна завжди найновіша. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!
|
||||
|
||||
──────────
|
||||
|
||||
English
|
||||
|
||||
What's new in recent versions
|
||||
|
||||
You can now play Shadow Net right on the itch.io page without downloading anything. And the network itself has come alive: it changes while you're away, keeps an eye on noisy hackers and lets you haggle with clients.
|
||||
|
||||
Play in the browser
|
||||
|
||||
• The game can be launched right on the itch.io page, without downloading the exe.
|
||||
• Browser saves are separate from the Windows version and survive a page reload.
|
||||
• Online records work from the browser too.
|
||||
|
||||
The network lives on without you
|
||||
|
||||
• After a break of an hour or more, 1–3 things happen in the network: a node gets tapped, an admin changes a password, or a long-untouched server offers a premium contract.
|
||||
• Tapped nodes 👂: after a noisy session where the trace went past half, a route node may get tapped. Trace grows faster through it.
|
||||
• route auto skips tapped nodes, and connect and wipe remove the bug.
|
||||
|
||||
Haggling and advances
|
||||
|
||||
• contract haggle: try to bargain for a quarter more pay. The chance depends on your rank, but the client may walk away.
|
||||
• contract advance: 30% of the pay upfront if they trust you.
|
||||
• Clients remember broken contracts, and with that reputation haggling gets harder.
|
||||
|
||||
Gradual interface
|
||||
|
||||
• A new game starts with a bare terminal: the map appears after your first scan, the buttons after your first crack.
|
||||
• Old saves show everything as before.
|
||||
|
||||
Trace you can see at a glance
|
||||
|
||||
• The trace bar heats up from cold violet to white-hot, so you notice danger without even looking at the numbers.
|
||||
|
||||
Online records
|
||||
|
||||
• 6-week Endless Network seasons: each season the leaderboard starts from zero.
|
||||
• A Wall of Shame for hackers busted for good. Both tabs are in the top command.
|
||||
|
||||
The Windows version updates in game with the update command, and the browser version is always the latest. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!
|
||||
63
itch/devlog/06_v1.0.94.md
Normal file
63
itch/devlog/06_v1.0.94.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Допис 6 журналу розробки (v1.0.94)
|
||||
|
||||
**Title:** Оновлення v1.0.94: чесні аванси і спокійніша мережа / Update v1.0.94: honest advances and a calmer network
|
||||
**Post type:** General Update
|
||||
**Tags:** update, bugfix, balance
|
||||
**Languages:** Українська, English (повний переклад)
|
||||
**Cover image:** без обкладинки (itch візьме з проєкту)
|
||||
|
||||
## Content
|
||||
|
||||
Найпростіше вставити через кнопку `<>` (джерело HTML) у редакторі itch, тоді списки й заголовки збережуться. Перед збереженням ОБОВ'ЯЗКОВО вийди з режиму `<>`, інакше itch пише "body: expected text".
|
||||
|
||||
```html
|
||||
<h2>Що нового в v1.0.94</h2>
|
||||
|
||||
<p>Невелике оновлення після вчорашньої «живої мережі»: я пройшовся по нових механіках і закрив кілька дірок.</p>
|
||||
|
||||
<h3>Аванс більше не можна «з'їсти»</h3>
|
||||
<ul>
|
||||
<li>Раніше можна було взяти аванс (<code>contract advance</code>), витратити гроші й зірвати контракт, і аванс лишався тобі задарма.</li>
|
||||
<li>Тепер, якщо аванс уже витрачено, а контракт зірвано, він стає боргом.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Мережа без тебе поводиться обережніше</h3>
|
||||
<ul>
|
||||
<li>Події за час твоєї відсутності більше не чіпають сервери поточної глави: ціль заливки, фрагменти ключа й сервер з підказкою лишаються такими, як ти їх залишив.</li>
|
||||
<li>На Параної мережа більше не змінюється, коли ти перезапускаєш главу з контрольної точки.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Сезони на сторінці гри</h3>
|
||||
<ul>
|
||||
<li>Таблицю поточного сезону Нескінченної мережі тепер видно й на сторінці рекордів: <a href="https://tinmerezhi.duckdns.org">tinmerezhi.duckdns.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Windows-версія оновлюється в грі командою <code>update</code>, а браузерна завжди найновіша. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>English</h2>
|
||||
|
||||
<h2>What's new in v1.0.94</h2>
|
||||
|
||||
<p>A small update after yesterday's "living network": I went through the new mechanics and closed a few holes.</p>
|
||||
|
||||
<h3>Advances can no longer be pocketed</h3>
|
||||
<ul>
|
||||
<li>Before, you could take an advance (<code>contract advance</code>), spend the money and break the contract, and the advance was yours for free.</li>
|
||||
<li>Now, if the advance is already spent and the contract is broken, it becomes debt.</li>
|
||||
</ul>
|
||||
|
||||
<h3>The network is more careful while you're away</h3>
|
||||
<ul>
|
||||
<li>Events during your absence no longer touch the current chapter's servers: the upload target, the key shards and the clue server stay as you left them.</li>
|
||||
<li>On Paranoid the network no longer changes when you restart a chapter from a checkpoint.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Seasons on the game page</h3>
|
||||
<ul>
|
||||
<li>The current Endless Network season leaderboard is now also shown on the records page: <a href="https://tinmerezhi.duckdns.org">tinmerezhi.duckdns.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>The Windows version updates in game with the <code>update</code> command, and the browser version is always the latest. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!</p>
|
||||
```
|
||||
43
itch/devlog/06_v1.0.94.txt
Normal file
43
itch/devlog/06_v1.0.94.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
Що нового в v1.0.94
|
||||
|
||||
Невелике оновлення після вчорашньої «живої мережі»: я пройшовся по нових механіках і закрив кілька дірок.
|
||||
|
||||
Аванс більше не можна «з'їсти»
|
||||
|
||||
• Раніше можна було взяти аванс (contract advance), витратити гроші й зірвати контракт, і аванс лишався тобі задарма.
|
||||
• Тепер, якщо аванс уже витрачено, а контракт зірвано, він стає боргом.
|
||||
|
||||
Мережа без тебе поводиться обережніше
|
||||
|
||||
• Події за час твоєї відсутності більше не чіпають сервери поточної глави: ціль заливки, фрагменти ключа й сервер з підказкою лишаються такими, як ти їх залишив.
|
||||
• На Параної мережа більше не змінюється, коли ти перезапускаєш главу з контрольної точки.
|
||||
|
||||
Сезони на сторінці гри
|
||||
|
||||
• Таблицю поточного сезону Нескінченної мережі тепер видно й на сторінці рекордів: https://tinmerezhi.duckdns.org
|
||||
|
||||
Windows-версія оновлюється в грі командою update, а браузерна завжди найновіша. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!
|
||||
|
||||
──────────
|
||||
|
||||
English
|
||||
|
||||
What's new in v1.0.94
|
||||
|
||||
A small update after yesterday's "living network": I went through the new mechanics and closed a few holes.
|
||||
|
||||
Advances can no longer be pocketed
|
||||
|
||||
• Before, you could take an advance (contract advance), spend the money and break the contract, and the advance was yours for free.
|
||||
• Now, if the advance is already spent and the contract is broken, it becomes debt.
|
||||
|
||||
The network is more careful while you're away
|
||||
|
||||
• Events during your absence no longer touch the current chapter's servers: the upload target, the key shards and the clue server stay as you left them.
|
||||
• On Paranoid the network no longer changes when you restart a chapter from a checkpoint.
|
||||
|
||||
Seasons on the game page
|
||||
|
||||
• The current Endless Network season leaderboard is now also shown on the records page: https://tinmerezhi.duckdns.org
|
||||
|
||||
The Windows version updates in game with the update command, and the browser version is always the latest. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!
|
||||
@@ -94,7 +94,8 @@ const T = {
|
||||
shots: "📸 Скриншоти", news: "📰 Що нового", more: "Показати старіші",
|
||||
recnote: "Онлайн-рекорди надсилаються з гри лише за згодою (налаштування → онлайн-рекорди). Таблиці оновлюються щохвилини.",
|
||||
foot: "Розробник: JunioR. Гра і код — під ліцензією MIT. Рушій Godot.",
|
||||
boards: ["♾ Нескінченна мережа", "📅 Виклик дня", "🤖 1 · Кур'єр", "🤖 2 · Прибиральник", "🤖 3 · Збирач", "🤖 4 · Нічний рейс"],
|
||||
boards: ["♾ Нескінченна мережа", "🏆 Сезон", "📅 Виклик дня", "🤖 1 · Кур'єр", "🤖 2 · Прибиральник", "🤖 3 · Збирач", "🤖 4 · Нічний рейс", "💀 Стіна ганьби"],
|
||||
until: "до", ch: "Глава", when: "Дата", clean: "Поки чисто. Тримайся так!",
|
||||
nick: "Нік", score: "Рахунок", depth: "Глибина", diff: "Складність", jobs: "Замовлень", lines: "Рядків", steps: "Кроків",
|
||||
diffs: ["Новачок", "Звичайний", "Параноя"], empty: "Поки порожньо. Стань першим!", down: "Сервер рекордів недоступний"
|
||||
},
|
||||
@@ -113,18 +114,19 @@ const T = {
|
||||
shots: "📸 Screenshots", news: "📰 What's new", more: "Show older",
|
||||
recnote: "Scores are sent from the game only if you opt in (settings → online leaderboards). Tables refresh every minute.",
|
||||
foot: "Developer: JunioR. The game and its code are MIT-licensed. Godot engine.",
|
||||
boards: ["♾ Endless Network", "📅 Daily", "🤖 1 · Courier", "🤖 2 · Janitor", "🤖 3 · Collector", "🤖 4 · Night Flight"],
|
||||
boards: ["♾ Endless Network", "🏆 Season", "📅 Daily", "🤖 1 · Courier", "🤖 2 · Janitor", "🤖 3 · Collector", "🤖 4 · Night Flight", "💀 Wall of Shame"],
|
||||
until: "until", ch: "Chapter", when: "Date", clean: "Clean so far. Keep it up!",
|
||||
nick: "Nick", score: "Score", depth: "Depth", diff: "Difficulty", jobs: "Jobs", lines: "Lines", steps: "Steps",
|
||||
diffs: ["Novice", "Normal", "Paranoid"], empty: "Empty so far. Be the first!", down: "Leaderboard server unavailable"
|
||||
}
|
||||
};
|
||||
const DAY = "d" + new Date().toISOString().slice(0, 10).replaceAll("-", ""); // виклик дня — за UTC, як у грі
|
||||
const IDS = ["endless", DAY, "agent0", "agent1", "agent2", "agent3"];
|
||||
const IDS = ["endless", "season", DAY, "agent0", "agent1", "agent2", "agent3", "shame"];
|
||||
let lang = "uk";
|
||||
try { lang = localStorage.getItem("lang") || (navigator.language.startsWith("uk") ? "uk" : "en"); } catch (e) {}
|
||||
if (new URLSearchParams(location.search).get("lang") in T) lang = new URLSearchParams(location.search).get("lang");
|
||||
let tops = {};
|
||||
let news = [], newsAll = false; // news.json: ігрові зміни з whatsnew.gd (CI, ci/news.py) // кеш таблиць, щоб перемикання мови не ходило в мережу
|
||||
let tops = {}, season = null; // кеш таблиць, щоб перемикання мови не ходило в мережу
|
||||
let news = [], newsAll = false; // news.json: ігрові зміни з whatsnew.gd (CI, ci/news.py)
|
||||
|
||||
function el(tag, text, cls) { const e = document.createElement(tag); if (text !== undefined) e.textContent = text; if (cls) e.className = cls; return e; }
|
||||
|
||||
@@ -142,18 +144,25 @@ function render() {
|
||||
document.getElementById("news-h").style.display = news.length ? "" : "none";
|
||||
document.getElementById("boards").replaceChildren(...IDS.map((id, k) => {
|
||||
const s = el("section", undefined, "b"), tb = el("table"), head = el("tr");
|
||||
s.append(el("h3", t.boards[k]));
|
||||
const cols = k === 0 ? ["#", t.nick, t.score, t.depth, t.diff] : k === 1 ? ["#", t.nick, t.score, t.jobs] : ["#", t.nick, t.lines, t.steps];
|
||||
s.append(el("h3", t.boards[k] + (id === "season" && season ? ` ${season.season} · ${t.until} ${season.ends}` : "")));
|
||||
const deep = k < 2; // endless і сезон: рахунок, глибина, складність
|
||||
const shame = id === "shame"; // стіна ганьби: остаточно арештовані, нові зверху
|
||||
const cols = shame ? ["#", t.nick, t.ch, t.diff, t.when] : deep ? ["#", t.nick, t.score, t.depth, t.diff] : k === 2 ? ["#", t.nick, t.score, t.jobs] : ["#", t.nick, t.lines, t.steps];
|
||||
cols.forEach((c, i) => head.append(el("th", c, i > 1 && c !== t.diff ? "n" : "")));
|
||||
tb.append(head); s.append(tb);
|
||||
const top = tops[id];
|
||||
if (top === undefined) s.append(el("p", "…", "empty"));
|
||||
else if (top === null) s.append(el("p", t.down, "bad"));
|
||||
else if (!top.length) s.append(el("p", t.empty, "empty"));
|
||||
else if (!top.length) s.append(el("p", shame ? t.clean : t.empty, "empty"));
|
||||
else if (shame) top.forEach((r, i) => {
|
||||
const tr = el("tr");
|
||||
tr.append(el("td", i + 1), el("td", r.nick, "bad"), el("td", r.ch + 1, "n"), el("td", t.diffs[r.diff] ?? ""), el("td", new Date(r.ts * 1000).toISOString().slice(5, 10), "n"));
|
||||
tb.append(tr);
|
||||
});
|
||||
else top.forEach((r, i) => {
|
||||
const tr = el("tr");
|
||||
tr.append(el("td", i + 1), el("td", r.nick), el("td", r.a.toLocaleString(lang), "n"), el("td", r.b, "n"));
|
||||
if (k === 0) tr.append(el("td", t.diffs[r.diff] ?? ""));
|
||||
if (deep) tr.append(el("td", t.diffs[r.diff] ?? ""));
|
||||
if (i === 0) tr.className = "first";
|
||||
tb.append(tr);
|
||||
});
|
||||
@@ -163,7 +172,12 @@ function render() {
|
||||
|
||||
async function load() {
|
||||
await Promise.all(IDS.map(async id => {
|
||||
try { const r = await fetch("api/top?board=" + id, {cache: "no-store"}); tops[id] = r.ok ? (await r.json()).top : null; }
|
||||
try {
|
||||
const r = await fetch(id === "shame" ? "api/shame" : "api/top?board=" + id, {cache: "no-store"});
|
||||
const d = r.ok ? await r.json() : {};
|
||||
tops[id] = d.top ?? d.shame ?? null;
|
||||
if (id === "season" && d.ends) season = d;
|
||||
}
|
||||
catch (e) { tops[id] = null; }
|
||||
}));
|
||||
render();
|
||||
|
||||
@@ -1461,6 +1461,7 @@ const EN := {
|
||||
" і менше зірваних контрактів": " and fewer broken contracts",
|
||||
"💸 Аванс $%d отримано. Решту — після роботи. Зірвеш — це запам'ятають.": "💸 Advance of $%d received. The rest comes after the job. Break it and they will remember.",
|
||||
"💸 Аванс не відпрацьовано: $%d довелося повернути.": "💸 Advance not earned: you had to pay back $%d.",
|
||||
" Борг: $%d.": " Debt: $%d.",
|
||||
"👂 На вузол \"%s\" поставили жучок.": "👂 Someone bugged the node \"%s\".",
|
||||
"🔑 Адмін \"%s\" змінив пароль: доступу знову немає.": "🔑 The admin of \"%s\" changed the password: access is gone again.",
|
||||
"📜 Сервер, якого давно ніхто не чіпав, шукає хакера: контракт з премією $%d (contract).": "📜 A server nobody has touched in a while is looking for a hacker: contract with a premium, $%d (contract).",
|
||||
|
||||
@@ -908,7 +908,7 @@ func arrest(reason: String) -> void:
|
||||
return
|
||||
busts += 1
|
||||
online.event("bust")
|
||||
var lost := int(floor(money * maxf(T.BUST_LOSS_MIN, T.BUST_LOSS - T.CRYPT_CUT * eff(hw["crypt"])) / 100.0))
|
||||
var lost := int(floor(maxi(0, money) * maxf(T.BUST_LOSS_MIN, T.BUST_LOSS - T.CRYPT_CUT * eff(hw["crypt"])) / 100.0))
|
||||
money -= lost
|
||||
if cur != null:
|
||||
Story._lock(cur)
|
||||
|
||||
@@ -286,19 +286,26 @@ static func broke(g: Main, c) -> void:
|
||||
return
|
||||
g.stats["broken"] += 1
|
||||
if c.get("adv", 0):
|
||||
g.money = maxi(0, g.money - c["adv"])
|
||||
g.say(L.t("💸 Аванс не відпрацьовано: $%d довелося повернути.") % c["adv"], "err")
|
||||
g.money -= c["adv"] # витрачений аванс стає боргом: інакше "аванс → магазин → contract drop" давав гроші задарма
|
||||
g.say(L.t("💸 Аванс не відпрацьовано: $%d довелося повернути.") % c["adv"] + (L.t(" Борг: $%d.") % -g.money if g.money < 0 else ""), "err")
|
||||
g.gain_rep(-10)
|
||||
|
||||
# Мережа живе, поки гравця нема: вузли прослуховують, адміни міняють паролі, давно не чіпані сервери доплачують.
|
||||
static func away_events(g: Main) -> void:
|
||||
var hours := g.away / 3600
|
||||
if hours < T.AWAY_HOURS or g.endless != null or g.over:
|
||||
# Параноя пише збереження лише на початку акту: "t" там — час контрольної точки, а не виходу з гри
|
||||
if hours < T.AWAY_HOURS or g.endless != null or g.over or not T.DIFF_SAVES[g.diff]:
|
||||
return
|
||||
var target = g.srv_of(g.missions[g.mission]["file"])
|
||||
# сервери поточної глави не чіпаємо: ціль заливки, фрагменти ключа, підказка розвідки
|
||||
var m = g.missions[g.mission]
|
||||
var keep: Array = [m.get("ip", "")] + m.get("targets", [])
|
||||
for f in [m["file"], m.get("clue", "")] + m.get("shards", []):
|
||||
var s = g.srv_of(f)
|
||||
if s != null:
|
||||
keep.append(s["ip"])
|
||||
var lines := []
|
||||
for i in mini(T.AWAY_MAX, 1 + hours / T.AWAY_PER):
|
||||
var open := g.servers.filter(func(s): return s["open"] and s != target and not s.get("tap", false))
|
||||
var open := g.servers.filter(func(s): return s["open"] and not s["ip"] in keep and not s.get("tap", false))
|
||||
match randi() % 3:
|
||||
0 when not open.is_empty() and g.servers.filter(func(x): return x.get("tap", false)).size() < T.TAP_MAX:
|
||||
var s = open.pick_random()
|
||||
|
||||
@@ -1107,6 +1107,20 @@ func _itch_ideas() -> void:
|
||||
g.run("contract")
|
||||
g.run("contract advance")
|
||||
ok(not g.contract.has("adv") and "довіру" in last(g), "аванс: після зірваних контрактів не дають")
|
||||
g.stats["broken"] = 0
|
||||
g.contract.erase("talk")
|
||||
g.run("contract advance")
|
||||
g.money = 0 # аванс уже витрачено
|
||||
g.run("contract drop")
|
||||
ok(g.money < 0 and g.log_lines.slice(-5).any(func(l): return "Борг: $%d" % -g.money in l[0]), "аванс: витрачений і зірваний — борг, а не гроші задарма")
|
||||
var cur0 = g.cur
|
||||
g.cur = null
|
||||
var debt: int = g.money
|
||||
g.arrest("тест")
|
||||
ok(g.money == debt, "арешт із боргом не додає грошей")
|
||||
g.busts = 0
|
||||
g.cur = cur0
|
||||
g.money = 1000
|
||||
# мережа живе без гравця
|
||||
g.away = 30 * 3600
|
||||
g.contract = null
|
||||
@@ -1118,6 +1132,23 @@ func _itch_ideas() -> void:
|
||||
lines0 = g.log_lines.size()
|
||||
g.Net.away_events(g)
|
||||
ok(g.log_lines.size() == lines0, "мережа без гравця: коротка перерва — нічого")
|
||||
for s in g.servers:
|
||||
s["open"] = true
|
||||
s.erase("tap")
|
||||
var m0i: int = g.mission
|
||||
g.mission = range(g.missions.size()).filter(func(i): return g.missions[i].get("upload", false))[0] # глава заливки: ціль — "ip", не файл
|
||||
var mt = g.srv_by_ip(g.missions[g.mission]["ip"])
|
||||
g.away = 30 * 3600
|
||||
for i in 30:
|
||||
g.Net.away_events(g)
|
||||
ok(mt["open"] and not mt.has("tap"), "мережа без гравця: сервер поточної глави не чіпають")
|
||||
g.mission = m0i
|
||||
var d0: int = g.diff
|
||||
g.diff = 2
|
||||
lines0 = g.log_lines.size()
|
||||
g.Net.away_events(g)
|
||||
g.diff = d0
|
||||
ok(g.log_lines.size() == lines0, "мережа без гравця: Параноя (час контрольної точки) — нічого")
|
||||
# поступовий інтерфейс
|
||||
ok(g.ui_hide.is_empty() and g.map.visible, "тести бачать увесь інтерфейс")
|
||||
g.ui_hide = ["map", "btns"]
|
||||
|
||||
@@ -8,6 +8,8 @@ const Updater = preload("res://updater.gd")
|
||||
const MAX_ITEMS := 8 # коротко: вікно має влазити й з великим шрифтом
|
||||
|
||||
const CHANGES := [
|
||||
["1.0.94", "Аванс більше не можна «з'їсти»: якщо гроші витрачено, а контракт зірвано, аванс стає боргом.", "An advance can no longer be pocketed: if you spent it and broke the contract, it becomes debt."],
|
||||
["1.0.94", "Мережа без тебе не чіпає сервери поточної глави (ціль заливки, фрагменти ключа, підказку), а на Параної не спрацьовує після перезапуску з контрольної точки.", "While you are away the network no longer touches the current chapter's servers (upload target, key shards, clue), and on Paranoid it no longer fires on a checkpoint restart."],
|
||||
["1.0.93", "Шкала трасування «розжарюється»: від холодного фіолетового до білого, щоб небезпеку було видно краєм ока.", "The trace bar now heats up from cold violet to white-hot, so danger is visible at a glance."],
|
||||
["1.0.93", "Прослухані вузли 👂: після гучної сесії вузол маршруту можуть почати прослуховувати, і він додає трасування. route auto його оминає, а connect і wipe знімають жучок.", "Tapped nodes 👂: after a noisy session a route node may get tapped and add trace. route auto skips it; connect and wipe remove the bug."],
|
||||
["1.0.93", "Мережа живе без тебе: після перерви вузли прослуховують, адміни міняють паролі, а давно не чіпаний сервер пропонує контракт з премією.", "The network lives on without you: after a break nodes get tapped, admins change passwords, and a long-untouched server offers a premium contract."],
|
||||
|
||||
Reference in New Issue
Block a user