Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title #26

Merged
merged 51 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
644e642
always build with net 8.0
NikoCat233 Dec 19, 2024
22fbe08
Force set language version to 12.0
NikoCat233 Dec 19, 2024
e19bbd7
Sync translations alpha8.3
NikoCat233 Dec 19, 2024
2ab096b
Add Delete old workflow runs
NikoCat233 Dec 22, 2024
67a3817
Delete all skipped and cancelled runs
NikoCat233 Dec 22, 2024
9739490
Fix error
NikoCat233 Dec 22, 2024
32ef949
Avoid deleting succeeded runs related to a pr
NikoCat233 Dec 22, 2024
5eebe1c
Try improve sync speed spam
NikoCat233 Dec 22, 2024
d09e480
Merge Coven translations
NikoCat233 Dec 22, 2024
ad90331
New translations en_us.json (Chinese Traditional)
0xDrMoe Dec 26, 2024
27b46fc
New translations en_us.json (Italian)
0xDrMoe Dec 27, 2024
f296a82
New translations en_us.json (Italian)
0xDrMoe Dec 27, 2024
26df203
New translations en_us.json (Italian)
0xDrMoe Dec 27, 2024
97a7834
New translations en_us.json (Italian)
0xDrMoe Dec 27, 2024
60d6c77
New translations en_us.json (Chinese Traditional)
0xDrMoe Dec 28, 2024
03cd7c8
New translations en_us.json (Chinese Traditional)
0xDrMoe Dec 28, 2024
46aa5de
Force push dev2.2.0 to main
NikoCat233 Dec 29, 2024
72ec8d7
New translations en_us.json (Chinese Simplified)
0xDrMoe Dec 29, 2024
0105a1b
New translations en_us.json (Spanish, Latin America)
0xDrMoe Dec 29, 2024
f0b2aaf
New translations en_us.json (French)
0xDrMoe Dec 29, 2024
bcfb0f2
New translations en_us.json (Spanish)
0xDrMoe Dec 29, 2024
0f9e31c
New translations en_us.json (German)
0xDrMoe Dec 29, 2024
22f4662
New translations en_us.json (Italian)
0xDrMoe Dec 29, 2024
cab0a01
New translations en_us.json (Japanese)
0xDrMoe Dec 29, 2024
5899bab
New translations en_us.json (Korean)
0xDrMoe Dec 29, 2024
82f395c
New translations en_us.json (Dutch)
0xDrMoe Dec 29, 2024
6797ff6
New translations en_us.json (Portuguese)
0xDrMoe Dec 29, 2024
6f3d5ef
New translations en_us.json (Russian)
0xDrMoe Dec 29, 2024
dba9327
New translations en_us.json (Chinese Traditional)
0xDrMoe Dec 29, 2024
4be02fb
New translations en_us.json (Portuguese, Brazilian)
0xDrMoe Dec 29, 2024
5181082
New translations en_us.json (Filipino)
0xDrMoe Dec 29, 2024
0a1e5bb
Merge translation from dev2.2.0
NikoCat233 Dec 30, 2024
52964e8
New translations en_us.json (Chinese Simplified)
0xDrMoe Dec 30, 2024
a98625c
New translations en_us.json (Spanish, Latin America)
0xDrMoe Dec 30, 2024
c0dd6e7
New translations en_us.json (French)
0xDrMoe Dec 30, 2024
9ca051f
New translations en_us.json (Spanish)
0xDrMoe Dec 30, 2024
ae99f67
New translations en_us.json (German)
0xDrMoe Dec 30, 2024
08efe9b
New translations en_us.json (Italian)
0xDrMoe Dec 30, 2024
69f3a31
New translations en_us.json (Japanese)
0xDrMoe Dec 30, 2024
b9a8fae
New translations en_us.json (Korean)
0xDrMoe Dec 30, 2024
77b0cdd
New translations en_us.json (Dutch)
0xDrMoe Dec 30, 2024
954bf6f
New translations en_us.json (Portuguese)
0xDrMoe Dec 30, 2024
637453e
New translations en_us.json (Russian)
0xDrMoe Dec 30, 2024
cc422a8
New translations en_us.json (Chinese Traditional)
0xDrMoe Dec 30, 2024
2e05775
New translations en_us.json (Portuguese, Brazilian)
0xDrMoe Dec 30, 2024
8439ea8
New translations en_us.json (Filipino)
0xDrMoe Dec 30, 2024
a311659
Merge pull request #1323 from EnhancedNetwork/l10n_main
NikoCat233 Dec 30, 2024
3178ba1
Merge branch 'main' into dev_2.2.0
NikoCat233 Dec 30, 2024
3eb6068
220 Alpha 10
NikoCat233 Dec 30, 2024
6266ea9
Fix seeker killcooldown not correctly set
NikoCat233 Dec 30, 2024
ae2a9b8
Merge pull request #25 from EnhancedNetwork/dev_2.2.0
impostor4291 Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/clearlogs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Delete old workflow runs

on:
schedule:
- cron: '0 0 */14 * *' # Run every 14 days at 00:00
workflow_dispatch: # Allow manual execution

jobs:
del_succeed_runs:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
steps:
- name: Delete Succeeded workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 7
keep_minimum_runs: 6
delete_run_by_conclusion_pattern: 'success'
check_pullrequest_exist: true
- name: Delete Cancelled workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0
delete_run_by_conclusion_pattern: 'cancelled,skipped'
13 changes: 13 additions & 0 deletions Patches/PlayerControlPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,19 @@ public static Task DoPostfix(PlayerControl __instance)

player.OnFixedAddonUpdate(lowLoad);

if (Main.AllPlayerSpeed.ContainsKey(player.PlayerId) && !lowLoad)
{
if (!Main.LastAllPlayerSpeed.ContainsKey(player.PlayerId))
{
Main.LastAllPlayerSpeed[player.PlayerId] = Main.AllPlayerSpeed[player.PlayerId];
}
else if (!Main.LastAllPlayerSpeed[player.PlayerId].Equals(Main.AllPlayerSpeed[player.PlayerId]))
{
Main.LastAllPlayerSpeed[player.PlayerId] = Main.AllPlayerSpeed[player.PlayerId];
player.SyncSpeed();
}
}

if (Main.LateOutfits.TryGetValue(player.PlayerId, out var Method) && !player.CheckCamoflague())
{
Method();
Expand Down
134 changes: 69 additions & 65 deletions Resources/Lang/de_DE.json

Large diffs are not rendered by default.

52 changes: 28 additions & 24 deletions Resources/Lang/es_419.json

Large diffs are not rendered by default.

60 changes: 32 additions & 28 deletions Resources/Lang/es_ES.json

Large diffs are not rendered by default.

27 changes: 15 additions & 12 deletions Resources/Lang/fil_PH.json

Large diffs are not rendered by default.

52 changes: 28 additions & 24 deletions Resources/Lang/fr_FR.json

Large diffs are not rendered by default.

94 changes: 49 additions & 45 deletions Resources/Lang/it_IT.json

Large diffs are not rendered by default.

60 changes: 32 additions & 28 deletions Resources/Lang/ja_JP.json

Large diffs are not rendered by default.

27 changes: 15 additions & 12 deletions Resources/Lang/ko_KR.json

Large diffs are not rendered by default.

42 changes: 23 additions & 19 deletions Resources/Lang/nl_NL.json

Large diffs are not rendered by default.

60 changes: 32 additions & 28 deletions Resources/Lang/pt_BR.json

Large diffs are not rendered by default.

27 changes: 15 additions & 12 deletions Resources/Lang/pt_PT.json

Large diffs are not rendered by default.

60 changes: 32 additions & 28 deletions Resources/Lang/ru_RU.json

Large diffs are not rendered by default.

58 changes: 31 additions & 27 deletions Resources/Lang/zh_CN.json

Large diffs are not rendered by default.

62 changes: 33 additions & 29 deletions Resources/Lang/zh_TW.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions Roles/AddOns/Common/Spurt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,16 @@ public void OnFixedUpdate(PlayerControl player)
{
Utils.NotifyRoles(SpecifySeer: player, SpecifyTarget: player);
LastUpdate[player.PlayerId] = now;
player.SyncSpeed();
}
}

if (!moving)
{
Main.AllPlayerSpeed[player.PlayerId] += Mathf.Clamp(ChargeBy, 0f, MaxSpeed.GetFloat() - Main.AllPlayerSpeed[player.PlayerId]);
player.SyncSpeed();
return;
}

Main.AllPlayerSpeed[player.PlayerId] -= Mathf.Clamp(Decreaseby, 0f, Main.AllPlayerSpeed[player.PlayerId] - MinSpeed.GetFloat());
player.SyncSpeed();
player.MarkDirtySettings();
}
}
7 changes: 4 additions & 3 deletions Roles/Neutral/Seeker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ public override bool ForcedCheckMurderAsKiller(PlayerControl killer, PlayerContr
{
TotalPoints -= 1;
}
if (!Options.DisableShieldAnimations.GetBool()) killer.RpcGuardAndKill();
SetKillCooldown(killer.PlayerId);
killer.SyncSettings();

killer.ResetKillCooldown();
killer.SetKillCooldown(forceAnime: true);

SendRPC(killer.PlayerId, setTarget: false);
return false;
}
Expand Down
5 changes: 3 additions & 2 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public class Main : BasePlugin
public static ConfigEntry<string> DebugKeyInput { get; private set; }

public const string PluginGuid = "com.0xdrmoe.townofhostenhanced";
public const string PluginVersion = "2024.1226.220.00090"; // YEAR.MMDD.VERSION.CANARYDEV
public const string PluginDisplayVersion = "2.2.0 Alpha 9";
public const string PluginVersion = "2024.1230.220.00100"; // YEAR.MMDD.VERSION.CANARYDEV
public const string PluginDisplayVersion = "2.2.0 Alpha 10";
public const string SupportedVersionAU = "2024.10.29"; // Changed becasue Dark theme works at this version.

/******************* Change one of the three variables to true before making a release. *******************/
Expand Down Expand Up @@ -163,6 +163,7 @@ public class Main : BasePlugin
public static readonly Dictionary<int, int> SayStartTimes = [];
public static readonly Dictionary<int, int> SayBanwordsTimes = [];
public static readonly Dictionary<byte, float> AllPlayerSpeed = [];
public static readonly Dictionary<byte, float> LastAllPlayerSpeed = [];
public static readonly HashSet<byte> PlayersDiedInMeeting = [];
public static readonly Dictionary<byte, long> AllKillers = [];
public static readonly Dictionary<byte, (NetworkedPlayerInfo.PlayerOutfit outfit, string name)> OvverideOutfit = [];
Expand Down
Loading