Working BANK (#1061)

* making the bank ammunition actual bank ammunition

* this MatchError never happened before now; don't get it
This commit is contained in:
Fate-JH 2023-04-17 11:26:14 -04:00 committed by GitHub
parent 1bb21ba79c
commit f448cad13f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -298,7 +298,7 @@ object AvatarActor {
}
val fireMode = tool.AmmoSlots(ammoSlots)
fireMode.AmmoTypeIndex = ammoTypeIndex
fireMode.Box = AmmoBox(AmmoBoxDefinition(ammoBoxDefinition))
fireMode.Box = AmmoBox(DefinitionUtil.idToDefinition(ammoBoxDefinition).asInstanceOf[AmmoBoxDefinition])
ammoCount.collect {
case count if restoreAmmo => fireMode.Magazine = count
}

View file

@ -63,6 +63,8 @@ class SessionGalaxyHandlers(
case GalaxyResponse.SendResponse(msg) =>
sendResponse(msg)
case _ => ()
}
}
}