|
|
hace 1 mes | |
|---|---|---|
| .githooks | hace 1 mes | |
| .github | hace 1 mes | |
| docs | hace 1 mes | |
| scripts | hace 1 mes | |
| src | hace 1 mes | |
| tests | hace 1 mes | |
| .gitignore | hace 1 mes | |
| Directory.Build.props | hace 1 mes | |
| LICENSE | hace 1 mes | |
| OneShot.slnx | hace 1 mes | |
| README.md | hace 1 mes |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
让《Single Player Tushonka》客户端在本次会话里只能进一次战局的 SPT 客户端插件。
进入过一次战局(含藏身处)后,本插件会在本次 SPT 运行期间阻止你再开始新的战局;重启 SPT 即重置。适合“一把定输赢”或限制单次游玩时长的场景。
docs/principle.md)。OneShot-v{版本}.zip。BepInEx/plugins/OneShot/OneShot.dll。# 指定游戏根目录(未设置时回退到本机 Lutris 前缀默认路径)
export SPT_DIR="/path/to/Escape from Tarkov"
dotnet build src/OneShot.Plugin/OneShot.Plugin.csproj -c Release -p:DeployToGame=false
纯逻辑单元测试:
dotnet test tests/OneShot.Tests/OneShot.Tests.csproj -c Release
游戏内按 F12(SPT 默认;可在其配置中改键)打开 BepInEx ConfigurationManager,找到 OneShot 分区:
| 配置项 | 默认 | 说明 |
|---|---|---|
| 启用限制 / Enable Restriction | 开 | 总开关;关闭后不再阻止开始新战局。 |
| 重置已进局标记 / Reset Entered Flag | 关 | 勾选以清除“已进过局”标记,触发后自动取消勾选。 |
===============================================================
An SPT client plugin that lets you enter only one raid per Single Player Tushonka session.
Once a raid (or the hideout) has been entered, the plugin blocks starting another raid for the rest of this SPT run; restarting SPT resets it. Useful for "one life" or single-session play.
docs/principle.md).OneShot-v{version}.zip from Releases.BepInEx/plugins/OneShot/OneShot.dll.# Point at the game root (falls back to the local Lutris prefix by default)
export SPT_DIR="/path/to/Escape from Tarkov"
dotnet build src/OneShot.Plugin/OneShot.Plugin.csproj -c Release -p:DeployToGame=false
Pure-logic unit tests:
dotnet test tests/OneShot.Tests/OneShot.Tests.csproj -c Release
Press F12 in game (the SPT default; rebindable in its config) to open BepInEx ConfigurationManager, then find the OneShot section:
| Option | Default | Description |
|---|---|---|
| 启用限制 / Enable Restriction | On | Master switch; when off, starting a new raid is no longer blocked. |
| 重置已进局标记 / Reset Entered Flag | Off | Check to clear the "entered" flag; it unchecks itself afterwards. |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%