Goal:
The real goal of this PR was to allow the shields to be handled as flexibly as the schematics, to have one or more shields on different maps. This feature has been missing on my server for a long time and is therefore useful in practice.
Overview about the changes:
Renaming some classes & methods
Fixing issues in equipment randomizer
Adding new class structures:
MissileConfiguration.java + ShieldConfiguration.java with extends SchematicConfiguration.java
Missile.java + Shield.java with extends SchematicObject.java
Changing default resource shield.schematic to shields.zip with saving to plugins/MissileWars/shields/
Renaming and Moving old /game/misc/Shield.java to /listener/ShieldListener.java
Misc:
Config generation, schematic pasting of missiles and shields, and the equipment randomizer was tested ingame.
Facing rotation has only been implemented for missiles so far. This was not different before.
Most important changes:
I recommend looking at the 6 classes individually. The rest of the small things have been commented individually here in Github.
MissileConfiguration.java + ShieldConfiguration.java with extends SchematicConfiguration.java
Missile.java + Shield.java with extends SchematicObject.java
Goal: The real goal of this PR was to allow the shields to be handled as flexibly as the schematics, to have one or more shields on different maps. This feature has been missing on my server for a long time and is therefore useful in practice.
Overview about the changes:
MissileConfiguration.java
+ShieldConfiguration.java
withextends SchematicConfiguration.java
Missile.java
+Shield.java
withextends SchematicObject.java
shield.schematic
toshields.zip
with saving toplugins/MissileWars/shields/
/game/misc/Shield.java
to/listener/ShieldListener.java
Misc: Config generation, schematic pasting of missiles and shields, and the equipment randomizer was tested ingame. Facing rotation has only been implemented for missiles so far. This was not different before.
Most important changes:
I recommend looking at the 6 classes individually. The rest of the small things have been commented individually here in Github.
MissileConfiguration.java
+ShieldConfiguration.java
withextends SchematicConfiguration.java
Missile.java
+Shield.java
withextends SchematicObject.java
New Config: