Compare commits

...
4 Commits
Author SHA1 Message Date
TrèsAbhi fe68ebf450 Merge pull request #189 from Hitjack007/main
Fix Turret chnage not affecting DPM
2025-12-27 04:17:26 +00:00
TrèsAbhi 18cc885869 feat: hide bug in exclaim
Removed redundant comment about fixing a bug.
2025-12-26 21:13:06 -06:00
Mark Greene 9d4e1a66a1 Fix Turret chnage not affecting DPM 2025-12-27 15:35:16 +13:00
TrèsAbhi de8d3396b1 fix: use normalized dvpl path 2025-12-16 12:35:56 -06:00
2 changed files with 12 additions and 6 deletions

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ export abstract class AbstractVFS {
const normalized = normalize(path);
if (this.has(normalized)) return normalized;
const dvplPath = `${path}.dvpl`;
const dvplPath = `${normalized}.dvpl`;
if (this.has(dvplPath)) return dvplPath;
return null;
@@ -176,11 +176,17 @@ export function Modules() {
(turret) => turret.id === unlock.id
)!;
if (
!draft.protagonist.turret.guns.some(
(gun) => gun.id === draft.protagonist.gun.id
)
) {
// Check if current gun exists in new turret
const gunInNewTurret = draft.protagonist.turret.guns.find(
(gun) => gun.id === draft.protagonist.gun.id
);
if (gunInNewTurret) {
// Gun exists - get it FROM this turret
draft.protagonist.gun = gunInNewTurret;
draft.protagonist.shell = gunInNewTurret.shells[0];
} else {
// Gun doesn't exist - select top gun from new turret
draft.protagonist.gun = draft.protagonist.turret.guns.at(-1)!;
draft.protagonist.shell = draft.protagonist.gun.shells[0];
}