Skip to content

Commit

Permalink
Update incorrect icons display in UI for some weapons.
Browse files Browse the repository at this point in the history
Signed-off-by: Neloreck <Neloreck@gmail.com>
  • Loading branch information
Neloreck committed Dec 27, 2024
1 parent 431e71b commit 40b78b0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/engine/configs/items/quest_items.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ description = st_wpn_wincheaster1300_descr
inv_weight = 3.0
inv_grid_width = 5
inv_grid_height = 1
inv_grid_x = 25
inv_grid_x = 24
inv_grid_y = 15
auto_attach = false
; Strap position
Expand Down
4 changes: 2 additions & 2 deletions src/engine/configs/items/weapons/w_protecta.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ hud = wpn_protecta_hud
installed_upgrades =
inv_grid_height = 2
inv_grid_width = 5
inv_grid_x = 16
inv_grid_y = 6
inv_grid_x = 24
inv_grid_y = 18
inv_name = st_wpn_protecta
inv_name_short = st_wpn_protecta
inv_weight = 3.0
Expand Down
7 changes: 6 additions & 1 deletion src/engine/core/managers/death/ReleaseBodyManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ export class ReleaseBodyManager extends AbstractManager {
return;
}

logger.info("Register corpse object: %s", object.name());
logger.info(
"Register corpse object: %s, %s/%s",
object.name(),
deathConfig.RELEASE_OBJECTS_REGISTRY.length(),
deathConfig.MAX_BODY_COUNT
);

table.insert(deathConfig.RELEASE_OBJECTS_REGISTRY, {
id: object.id(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const log: LuaLogger = new LuaLogger($filename);
* @returns map of simulation group IDs by level name
*/
export function initializeLevelSimulationGroupIds(ini: IniFile): LuaTable<TName, TNumberId> {
log.info("Initialize level simulation group IDs from: '%s', '%s' levels", ini.fname(), table.size(levels));
log.info("Initialize level simulation group IDs from: '%s', %s levels", ini.fname(), table.size(levels));

const availableLevels: LuaArray<TLevel> = getTableKeys($fromObject(levels));
const usedGroupIds: LuaTable<TNumberId, TName> = new LuaTable();
Expand Down
2 changes: 1 addition & 1 deletion src/resources
Submodule resources updated from 9e017c to 75946d

0 comments on commit 40b78b0

Please sign in to comment.