Compare commits

...

4 Commits

Author SHA1 Message Date
Claude
d2baf41c0d Аудит v1.0.78: арешт конфіскує файл «піти без логів», перегони на таких замовленнях, update посеред зламу
All checks were successful
build / build (push) Successful in 2m22s
- арешт на сервері з файлом «піти без логів» стирає його (+f): раніше connect + disconnect після арешту зараховували главу чи замовлення без повторного зламу (тест у features.gd)
- disconnect зараховує замовлення «піти без логів» ще онлайн: перегони за нього виграються, а не зникають мовчки
- update посеред зламу не перезапускає гру (+25% трасування після старту), як і зміна мови
- таймер вікна «Подобається гра?» не чіпає звільнену сцену (newgame/lang у перші 5 с)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZxdPyXJXoks2gzFtd2
2026-11-30 06:04:05 +00:00
Gitea Actions
520c22e821 game_godot: TinMerezhi.exe v1.0.78 2026-11-29 10:34:48 +00:00
Claude
208d0aac5c Оптимізація: CRT-шар вимикається на нулі, tools/ не потрапляє в exe
All checks were successful
build / build (push) Successful in 2m22s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZwmRt6eUYiekz66wM8
2026-11-29 10:31:33 +00:00
Gitea Actions
27db08393f game_godot: TinMerezhi.exe v1.0.77 2026-11-29 10:18:08 +00:00
11 changed files with 42 additions and 6 deletions

BIN
game_godot/TinMerezhi.exe (Stored with Git LFS)

Binary file not shown.

View File

@@ -8,7 +8,7 @@ dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter="tests/*"
exclude_filter="tests/*,tools/*"
export_path="../game_godot/TinMerezhi.exe"
encryption_include_filters=""
encryption_exclude_filters=""

View File

@@ -50,6 +50,10 @@ static func tick(g: Main, delta: float) -> void:
var m: ShaderMaterial = g.crt.material
m.set_shader_parameter("threat", g.threat_v)
m.set_shader_parameter("noise", clampf((g.threat_v - 0.35) / 0.65, 0.0, 1.0) * k)
# ефект на нулі й спокійно — шейдер повернув би картинку як є, тож не копіюємо екран щокадру
g.crt.visible = g.cfg["crt"] > 0 or g.flash.a > 0.0 or g.threat_v > 0.002 \
or (g.cur != null and g.trace > 60) \
or THEMES[clampi(int(g.cfg.get("theme", 0)), 0, THEMES.size() - 1)][1] >= 0.0
g.side_style.border_color = Color("#11aa55").lerp(Color("#ff3333"), g.threat_v)
g.side_style.shadow_color = Color(Color(0.2, 1, 0.4).lerp(Color(1, 0.2, 0.2), g.threat_v), 0.12 + 0.2 * g.threat_v)
# рамка тремтить, коли от-от відстежать (не заважаючи трусінню від помилок)

View File

@@ -722,6 +722,8 @@ const EN := {
"⚠ Слідчі зовсім близько! Повернись і зітри логи (wipe), поки не пізно.": "⚠ The investigators are very close! Go back and wipe the logs (wipe) before it's too late.",
"ТЕБЕ ВІДСТЕЖИЛИ": "YOU'VE BEEN TRACED",
"📜 Контракт провалено: тебе заарештували з файлом.": "📜 Contract failed: you were arrested with the file.",
"🔒 Оновитися можна після зламу: заверши його або відключись (disconnect).": "🔒 You can update after the crack: finish it or disconnect.",
"📦 %s конфісковано під час арешту — доведеться завантажити знову.": "📦 %s was confiscated in the arrest — you will have to download it again.",
"!!! %s !!! Конфісковано $%d.": "!!! %s !!! $%d confiscated.",
"ВІДСТЕЖЕНО": "TRACED",
"%s · конфісковано $%d": "%s · $%d confiscated",

View File

@@ -886,6 +886,11 @@ func arrest(reason: String) -> void:
if cur != null:
Story._lock(cur)
cur["logs"] = false
for f in cur["files"]: # файл "піти без логів" конфісковано: інакше після арешту connect + disconnect зараховував главу
if done.has("+" + f) and not done.has(f):
done.erase("+" + f)
done["?" + f] = true # ціль розвідки вже відома
say(L.t("📦 %s конфісковано під час арешту — доведеться завантажити знову.") % f, "err")
var burnt := route_servers()
for s in burnt:
node_fx.append([servers.find(s), time, "burn"])

View File

@@ -99,11 +99,11 @@ static func c_disconnect(g: Main, _a: String) -> void:
if s["logs"] and not g.heat.any(func(h): return h["ip"] == s["ip"]):
g.heat.append({"ip": s["ip"], "t": g.investigation_time(s)})
g.say(L.t("⚠ Ти лишив логи на \"%s\". Почалося розслідування: %d дій, щоб повернутися і стерти їх (wipe).") % [s["name"], g.investigation_time(s)], "err")
if g.endless == null:
g.Variety.on_disconnect(g, s) # ще онлайн: перегони за це замовлення зараховуються як виграні
g.cur = null
g.trace = 0.0
g.say(L.t("Відключено. Трасування скинуто."))
if g.endless == null:
g.Variety.on_disconnect(g, s)
var m = g.missions[g.mission]
if g.endless == null and m.get("clean", false) and g.done.has("+" + m["file"]) and g.srv_of(m["file"]) == s:
if s["logs"]:

View File

@@ -106,7 +106,7 @@ static func _finish_mission(g: Main) -> void:
Gfx.act_card(g, nm["act"], L.t("Нова частина історії"))
Modes.ng_mail(g, g.missions.slice(0, g.mission + 1).filter(func(x): return x.has("act")).size() - 1)
if g.endless == null:
g.get_tree().create_timer(5.0).timeout.connect(func(): g.Settings.ask_rate(g)) # після заставки акту
g.get_tree().create_timer(5.0).timeout.connect(func(): if is_instance_valid(g): g.Settings.ask_rate(g)) # після заставки акту
if g.mission == g.Data.MISSIONS.size():
_relock_act4(g)
if g.mission == g.A5_START:

View File

@@ -84,6 +84,16 @@ func _run() -> void:
g._on_submit("scan")
ok(g.theme.default_font_size == 20, "розмір шрифту застосовано")
ok(is_equal_approx(g.crt.material.get_shader_parameter("strength"), 0.4), "сила CRT застосована до шейдера")
g.Gfx.tick(g, 0.016)
ok(g.crt.visible, "CRT-шар увімкнений, поки ефект не на нулі")
g.Settings.set_value(g, "crt", 0)
g.Gfx.tick(g, 0.016)
ok(not g.crt.visible or g.threat_v > 0.002, "CRT на нулі в спокої — шар вимкнено")
g.flash = Color(1, 0, 0, 0.5)
g.Gfx.tick(g, 0.016)
ok(g.crt.visible, "спалах показує CRT-шар і на нулі")
g.flash = Color(0, 0, 0, 0)
g.Settings.set_value(g, "crt", 40)
drop(g)
g = fresh(true)
ok(g.cfg["crt"] == 40 and g.cfg["font"] == 20 and g.cfg["ui"] == 150, "налаштування зберігаються між запусками")
@@ -997,6 +1007,14 @@ func _variety() -> void:
g.run("disconnect")
ok(not g.done.has(f) and not g.done.has("+" + f), "без логів: наслідив — замовлення не зараховано")
g.heat = []
g.run("connect " + jcs["ip"])
g.run("download " + f)
g.arrest("тест")
g.busts = 0
jcs["open"] = true
g.run("connect " + jcs["ip"])
g.run("disconnect")
ok(not g.done.has(f) and not g.done.has("+" + f), "без логів: арешт конфіскує файл — connect + disconnect не зараховує")
g.heat = [] # прибрати хвости розслідувань з попередніх перевірок
g.run("connect " + jcs["ip"])
g.run("download " + f)

View File

@@ -0,0 +1 @@
uid://dice1cde0wej5

View File

@@ -119,6 +119,8 @@ func run() -> void:
check(true)
elif g.paranoid_run():
g.say(L.t("☠ Параноя зберігається лише на початку акту: оновлення перезапустить гру й поверне туди. Онови після кінця забігу."), "err")
elif g.crack != null: # перезапуск посеред зламу = висмикнутий кабель (+25% трасування після старту), як і зі зміною мови
g.say(L.t("🔒 Оновитися можна після зламу: заверши його або відключись (disconnect)."), "err")
else:
download()

View File

@@ -8,6 +8,10 @@ const Updater = preload("res://updater.gd")
const MAX_ITEMS := 8 # коротко: вікно має влазити й з великим шрифтом
const CHANGES := [
["1.0.79", "Арешт з файлом «піти без логів» конфіскує його: главу чи замовлення тепер не зарахувати простим connect і disconnect.", "An arrest while holding a \"leave no logs\" file confiscates it: the chapter or job no longer counts after a plain connect and disconnect."],
["1.0.79", "Перегони із суперником за замовлення «піти без логів» зараховуються як виграні, коли ти чисто відключився.", "A rival race for a \"leave no logs\" job now counts as won when you disconnect cleanly."],
["1.0.79", "update посеред зламу більше не перезапускає гру (це було б як висмикнути кабель): спершу заверши злам.", "update in the middle of a crack no longer restarts the game (that would be like pulling the cable): finish the crack first."],
["1.0.78", "Ефект CRT на нулі тепер справді вимкнений: на слабких ноутбуках гра менше навантажує відеокарту.", "CRT effect at zero is now truly off: the game puts less load on the GPU of weak laptops."],
["1.0.77", "Нова заставка при запуску: тінь у капюшоні з оком мережі над нічним Києвом.", "New startup splash: a hooded shadow with a network eye over night Kyiv."],
["1.0.76", "Після першого акту гра один раз запропонує оцінити її на itch.io.", "After the first act the game asks once whether you would rate it on itch.io."],
["1.0.75", "Параноя знову повноцінно важка: замок сервера там лише перша перешкода, за ним ще треба зламати код.", "Paranoid is properly hard again: a server lock is only the first obstacle there, the code behind it still has to be cracked."],