-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: vehicle config by category and moving things to shared conf…
…ig (#104) * refactor: vehicle config by category and moving things to shared config * fix nil check
- Loading branch information
Showing
6 changed files
with
45 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
---@meta | ||
|
||
---@alias VehicleType 'automobile' | 'bike' | 'boat' | 'heli' | 'plane' | 'submarine' | 'trailer' | 'train' | ||
|
||
---@class VehiclesConfig | ||
---@field default VehicleConfig | ||
---@field types table<VehicleType, VehicleConfig> | ||
---@field models table<number, VehicleConfig> | ||
---@alias Hash number|string actually a number but `model` is treated as a string by language server | ||
|
||
---@class VehicleConfig | ||
---@field spawnLocked? boolean | number ratio 0.0 - 1.0 | ||
---@field noLock? boolean | ||
---@field carjackingImmune? boolean | ||
---@field lockpickImmune? boolean | ||
---@field shared? boolean | ||
---@field shared? boolean | ||
---@field removeNormalLockpickChance number ratio | ||
---@field removeAdvancedLockpickChance number ratio | ||
---@field findKeysChance number ratio |