Skip to content

Commit

Permalink
Rail ammo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-dolkens committed Mar 10, 2016
1 parent e45ebd2 commit f232fcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions HoloXPLOR/Scripts/holoxplor.ship.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,11 @@ $(document).ready(function () {

equippedData.Ammo = ammoMap[equippedData.FireMode.Fire.AmmoType || equippedData.AmmoType[0]] ||
ammoMap[(inventoryMap[equippedData.FireMode.Fire.AmmoType || equippedData.AmmoType[0]] || { AmmoBox: {} }).AmmoBox.AmmoType] ||
ammoMap[(equippedData.AmmoType[0] || '').replace('Ammo_Rail_', '') + '_Rail_AMMO'] ||
ammoMap[(equippedData.AmmoType[0] || '').replace('Ammo_', '') + '_AMMO'] || {};
availableData.Ammo = ammoMap[availableData.FireMode.Fire.AmmoType || availableData.AmmoType[0]] ||
ammoMap[(inventoryMap[availableData.FireMode.Fire.AmmoType || availableData.AmmoType[0]] || { AmmoBox: {} }).AmmoBox.AmmoType] ||
ammoMap[(equippedData.AmmoType[0] || '').replace('Ammo_Rail_', '') + '_Rail_AMMO'] ||
ammoMap[(availableData.AmmoType[0] || '').replace('Ammo_', '') + '_AMMO'] || {};

equippedData.Ammo.Explosion = equippedData.Ammo.Explosion || {};
Expand Down
4 changes: 2 additions & 2 deletions HoloXPLOR/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
ViewBag.Title = "Home Page";
}

<div class="alert alert-danger" role="alert">
<!--<div class="alert alert-danger" role="alert">
<strong>IMPORTANT:</strong> If you're playing on the live server, you need to use <a href="https://holoxplor.space" class="alert-link">holoxplor.space</a>
</div>
</div>-->

<div class="jumbotron js-upload-inventory">
<h1>HoloXPLOR - 2.2.1</h1>
Expand Down
2 changes: 1 addition & 1 deletion HoloXPLOR/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="https://holoxplor.space"><span class="glyphicon glyphicon-bell"></span> Live Version</a></li>
<!--<li><a href="https://holoxplor.space"><span class="glyphicon glyphicon-bell"></span> Live Version</a></li>-->
@if (!String.IsNullOrWhiteSpace(ViewBag.ID))
{
if (ViewBag.Title != "Hangar")
Expand Down

0 comments on commit f232fcc

Please sign in to comment.