Skip to content

Commit

Permalink
feat: some healths
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi committed Jan 30, 2025
1 parent 67f3120 commit c6f4a13
Show file tree
Hide file tree
Showing 6 changed files with 510 additions and 425 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
"Pyogenics",
"ratingleaderboard",
"raycaster",
"regen",
"researchable",
"Resvg",
"rizz",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"update": "yarn upgrade --latest",
"tunnel": "cloudflared tunnel --url http://localhost:3000",
"discoverids": "scripts/discoverIds.ts",
"build:protos": "protoc packages/core/src/protos/*.proto --csharp_out=src/BlitzKit.CLI/Protos && bun packages/scripts/src/protos.ts",
"protos": "protoc packages/core/src/protos/*.proto --csharp_out=src/BlitzKit.CLI/Protos && bun packages/scripts/src/protos.ts",
"preview:website": "cd packages/website && bun run preview",
"build:reviews": "cd packages/scripts && bun build:reviews",
"build:ids": "cd packages/scripts && bun build:ids",
"prunestrings": "cd packages/scripts && bun prunestrings",
"dev:cli:unpack": "cd src/BlitzKit.CLI && dotnet run unpack \"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest\" --no-overwrite",
"dev:cli:mangle": "cd src/BlitzKit.CLI && dotnet run mangle"
"mangle": "cd src/BlitzKit.CLI && dotnet run mangle"
},
"license": "MIT",
"dependencies": {
Expand Down
56 changes: 28 additions & 28 deletions packages/core/src/protos/i18n.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions packages/core/src/protos/tank.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ message ModuleHealth {
required float max_regen_health = 2;
// the range from 0 to this where the module is "red" and doesn't function
// all the while healing; after surpassing this, the "yellow" phase is reached
required float hysteresis_health = 3;
// undefined for modules like ammo bays
optional float hysteresis_health = 3;
// the heal rate (per second); this won't apply if the health is at or above
// max_regen hence always leaving it in the "yellow" phase until repaired
required float health_regen_per_second = 4;
required float health_regen_per_sec = 4;
// damage received (per second) to the modules when caught on fire; this can
// be undefined for some modules like the gun or chassis
optional float health_burn_per_second = 5;
optional float health_burn_per_sec = 5;
}
Loading

0 comments on commit c6f4a13

Please sign in to comment.