Skip to content

Commit

Permalink
Fixed issue with injured operatives affecting weapon equipments for a…
Browse files Browse the repository at this point in the history
…ll operatives
  • Loading branch information
vjosset committed Nov 4, 2024
1 parent 3ed6a31 commit c351520
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions header.shtml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<script type="text/javascript" src="/js/utils.js?cb=202302181302"></script>

<!-- App/Controller -->
<link rel="preload" href="/js/app.js?cb=202410310914" as="script">
<script type="text/javascript" src="/js/app.js?cb=202410310914"></script>
<link rel="preload" href="/js/app.js?cb=202411040624" as="script">
<script type="text/javascript" src="/js/app.js?cb=202411040624"></script>

<!-- Fonts -->
<!-- Oswald Font -->
Expand Down
3 changes: 2 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ var app = angular.module("kt", ['ngSanitize'])

if (op.edition == 'kt24' && eq.eqtype.toLowerCase().includes("weapon")) {
//console.log("Giving eq wep " + eq.eqname + " to op " + op.opname);
op.weapons.push(eq.weapon);
// Make a deep-copy clone of the equipment weapon - This ensures that modifications to the weapon only apply to a single op (e.g. injured)
op.weapons.push(JSON.parse(JSON.stringify(eq.weapon)));
}

if (eq.eqtype.toLowerCase().includes("wepmod")) {
Expand Down
1 change: 1 addition & 0 deletions topnav.shtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<li class="nav-item" ng-show="currentuser == null"><a class="nav-link navloader" href="/signup.htm"><span class="fas fa-user fa-fw"></span>&nbsp;Sign Up</a></li>
<li class="nav-item" ng-show="currentuser == null"><a class="nav-link navloader" href="/login.htm"><span class="fas fa-lock fa-fw"></span>&nbsp;Log In</a></li>
<li class="nav-item" ng-show="currentuser != null"><a class="nav-link navloader" href="#" ng-click="logOut();"><span class="fas fa-lock fa-fw"></span>&nbsp;Log Out</a></li>
<li class="nav-item"><a class="nav-link navloader" href="https://beta.ktdash.app"><span class="fas fa-vial fa-fw"></span>&nbsp;Try The Beta!</a></li>
</ul>
</div>
</nav>
Expand Down

0 comments on commit c351520

Please sign in to comment.