Skip to content
Snippets Groups Projects
Commit 4ea7176c authored by Samuel Nejati Masouleh's avatar Samuel Nejati Masouleh
Browse files

Waffen Dublizieren Bug vorerst gelöst.

parent 4d75d843
No related branches found
No related tags found
No related merge requests found
......@@ -583,13 +583,18 @@ public class GamePlay implements Screen {
*/
public List<Weapon> loadWeapons() {
List<Weapon> weapons = main.getClient().getMyShip().getInventory();
for(Room r : main.getClient().getMyShip().getSystems()) {
if(r instanceof System) {
if(((System) r).getSystemType() == SystemType.WEAPON_SYSTEM) {
weapons.addAll(((System) r).getShipWeapons());
//todo: Die Startwaffen sollten beim Spielstart ins Inventory hinzugefügt werden.
if(weapons.size() == 0) {
for (Room r : main.getClient().getMyShip().getSystems()) {
if (r instanceof System) {
if (((System) r).getSystemType() == SystemType.WEAPON_SYSTEM) {
weapons.addAll(((System) r).getShipWeapons());
}
}
}
}
//BIS HIER LÖSCHEN
return weapons;
}
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment