Skip to content

Commit

Permalink
Used profession type instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Sep 13, 2021
1 parent 006c01a commit 2e31a95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [v0.4.1] - 2021-09-14
### Fixed
- Profession is no longer written in the localization language. Used profession type instead of name.

## [v0.4.0] - 2021-08-20
### Fixed
- Fixed "taken IsoGenerator" line in *_map.txt log file.
Expand All @@ -17,15 +21,15 @@ All notable changes to this project will be documented in this file.

## [v0.3.0] - 2019-12-01
### Added
- Added Events.OnEnterVehicle callback. Saves coordinates of the player's entry into the vehicle to {{dd-mm-yy_h-i}}_cmd.txt log file.
- Added Events.OnEnterVehicle callback. Save coordinates of the player's entry into the vehicle to {{dd-mm-yy_h-i}}_cmd.txt log file.
- Added Events.OnExitVehicle callback. Saves player's exit coordinates from vehicle to {{dd-mm-yy_h-i}}_cmd.txt log file.
- Added Events.EveryHours callback. Makes saving the character to {{dd-mm-yy_h-i}}_player.txt log file every one ingame hour.

### Changed
- Events can be turned on or off in the configuration of the LogExtender object.

### Fixed
- Removed levelup entries from the characters creation window until the server is fully connected.
- Removed levelup entries from the character's creation window until the server fully connected.

## [v0.2.0] - 2019-09-24
### Added
Expand All @@ -50,7 +54,8 @@ All notable changes to this project will be documented in this file.
### Added
- Add basic implementation.

[Unreleased]: https://github.com/openzomboid/log-extender/compare/v0.4.0...HEAD
[Unreleased]: https://github.com/openzomboid/log-extender/compare/v0.4.1...HEAD
[v0.4.1]: https://github.com/openzomboid/log-extender/compare/v0.4.0...v0.4.1
[v0.4.0]: https://github.com/openzomboid/log-extender/compare/v0.3.0...v0.4.0
[v0.3.0]: https://github.com/openzomboid/log-extender/compare/v0.2.0...v0.3.0
[v0.2.0]: https://github.com/openzomboid/log-extender/compare/v0.1.2...v0.2.0
Expand Down
4 changes: 2 additions & 2 deletions src/lua/client/LogExtender.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-- LogExtender adds more logs to the Logs directory the Project Zomboid game.
--

local version = "0.4.0"
local version = "0.4.1"

local LogExtender = {
-- Contains default config values.
Expand Down Expand Up @@ -157,7 +157,7 @@ LogExtender.getPlayerStats = function(player)
if player:getDescriptor() and player:getDescriptor():getProfession() then
local prof = ProfessionFactory.getProfession(player:getDescriptor():getProfession());
if prof then
stats.Profession = prof:getName();
stats.Profession = prof:getType();
end
end

Expand Down

0 comments on commit 2e31a95

Please sign in to comment.