mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Build a framework for a maintainable combat plugin
* Uses a hierarchy of WeaponClasses -> Weapons for performing attacks, with WeaponClass having a set of styles and associated Attacks for those styles. Weapons and their classes are built with an easy to use and clean DSL. * Adds a BonusContainer mixin, so that Equipment, Weapons, and WeaponClasses can all have their own set of bonuses which apply to the player. * Allows attacks to be queued to the Mobs CombatState instance from external code, allowing e.g., NPCs or auto-cast to queue attacks to be executed.
This commit is contained in:
@@ -1,17 +1,36 @@
|
||||
<?xml version="1.0"?>
|
||||
<plugin>
|
||||
<id>combat</id>
|
||||
<version>1</version>
|
||||
<name>Combat</name>
|
||||
<description>Manages combat between game characters.</description>
|
||||
<authors>
|
||||
<author>Ryley</author>
|
||||
</authors>
|
||||
<scripts>
|
||||
<script>wilderness.rb</script>
|
||||
</scripts>
|
||||
<dependencies>
|
||||
<dependency>attributes</dependency>
|
||||
<dependency>areas</dependency>
|
||||
</dependencies>
|
||||
<id>combat</id>
|
||||
<version>0.1</version>
|
||||
<name>combat</name>
|
||||
<description>Adds fully functioning melee, ranged and magic combat.</description>
|
||||
<authors>
|
||||
<author>garyttierney</author>
|
||||
</authors>
|
||||
<scripts>
|
||||
<script>attack.rb</script>
|
||||
<script>attribute.rb</script>
|
||||
<script>bonus_container.rb</script>
|
||||
<script>combat.rb</script>
|
||||
<script>combat_action.rb</script>
|
||||
<script>combat_state.rb</script>
|
||||
<script>equipment.rb</script>
|
||||
<script>projectile.rb</script>
|
||||
<script>util.rb</script>
|
||||
<script>weapon.rb</script>
|
||||
<script>weapon_class.rb</script>
|
||||
<script>weapons/bows.rb</script>
|
||||
<script>weapons/scimitars.rb</script>
|
||||
<script>weapons/swords.rb</script>
|
||||
<script>weapons/two_handed_swords.rb</script>
|
||||
<script>weapons/unarmed.rb</script>
|
||||
<script>widgets/combat_tab.rb</script>
|
||||
<script>widgets/ancient_magics_tab.rb</script>
|
||||
<script>widgets/regular_magics_tab.rb</script>
|
||||
<script>widgets/lunar_magics_tab.rb</script>
|
||||
</scripts>
|
||||
<dependencies>
|
||||
<dependency>attributes</dependency>
|
||||
<dependency>util</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
|
||||
Reference in New Issue
Block a user