Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
SDGNelson committed Apr 9, 2021
2 parents c4fdf0c + baa9d92 commit 3e8f5e4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

All notable changes should be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## 4.9.3.11 - 2021-4-02
## 4.9.3.12 - 2021-04-09

### Changed
- Replaced `UnturnedPlayer` usage of `PlayerSkills.askSkills`. Thanks @PandahutMiku: [#2537](https://github.com/SmartlyDressedGames/Unturned-3.x-Community/issues/2537)

## 4.9.3.11 - 2021-04-02

### Changed
- Replaced Assembly-CSharp-firstpass.dll with Steamworks.NET.dll.
Expand Down
12 changes: 2 additions & 10 deletions Rocket.Unturned/Player/UnturnedPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,7 @@ public string IP

public void MaxSkills()
{
PlayerSkills skills = player.skills;

foreach (var skill in skills.skills.SelectMany(s => s))
{
skill.level = skill.max;
}

skills.askSkills(player.channel.owner.playerID.steamID);
player.skills.ServerUnlockAllSkills();
}

public string SteamGroupName()
Expand Down Expand Up @@ -591,8 +584,7 @@ public bool IsInVehicle

public void SetSkillLevel(UnturnedSkill skill, byte level)
{
GetSkill(skill).level = level;
player.skills.askSkills(CSteamID);
player.skills.ServerSetSkillLevel(skill.Speciality, skill.Skill, level);
}

public byte GetSkillLevel(UnturnedSkill skill)
Expand Down
2 changes: 1 addition & 1 deletion Rocket.Unturned/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
[assembly: AssemblyProduct("Rocket.Unturned")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: Guid("8870d132-f877-4fbd-9e73-49c8b1af8b3f")]
[assembly: AssemblyVersion("4.9.3.11")]
[assembly: AssemblyVersion("4.9.3.12")]
2 changes: 1 addition & 1 deletion Rocket.Unturned/Rocket.Unturned/Rocket.Unturned.module
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "Rocket.Unturned",
"Version": "4.9.3.11",
"Version": "4.9.3.12",
"Assemblies":
[
{
Expand Down

0 comments on commit 3e8f5e4

Please sign in to comment.