Home
Personal tools
Namespaces
Variants
Actions

Slot System 2

From Naevwiki

Jump to: navigation, search

Following discussion on IRC and piratepad, this is a detailed description for another revision of the slot system.

Contents

Overview

Slots are currently subdivided into weapons, structure and utility types. We're going to add one more type to this, the "core" type. Each ship has exactly three core slots, and each core slot must at all times contain one outfit. The three core slots are:

  1. Engine core: this core slot contains the engine. The engine governs maximum speed, thrust, turn rate and energy generation.
  2. System core: this core slot contains the ship's main system. Energy generation, shield generation, base CPU and base ewarfare hide level are affected by this.
  3. Hull core: This core slot contains the ship's outer hull (paradoxically). It can be considered a collection of refits and modifications to the ship's own hull. Base armour strength, damage absorption, stealth factor, cargo space and the maximum number of weapon mounts are determined here.

A ship's base stats

The ship's base stats are determined as follows:

The core slots

As stated, each ship has exactly three core slots. Like all other slots, the core slots come in three flavors: small, medium and large. They are defined just like other slots, and have no special properties other than their type. The core slots should have a fixed location on the outfit screen (since they never vary), and can be ignored for weapon/outfit groups.

The slots will be implemented using slot properties. Specifically exclusive required slots this means we need two additional properties per slot:

  1. Exclusive slot property (makes it so you can't equip generic outfits)
  2. Required slot (makes it so you need it to fly the ship)

We also need to be able to specify default outfits as all ships will need these required slots to be able to fly. The syntax will be the following:

<utility prop_exc="systems" required="1">Default Systems Outfit</utility>

Where we can see prop_exec="systems" indicates this is a systems outfit and is exclusive, required="1" indicates this outfit is required for the ship to work and Default Systems Outfit is the default outfit to be given to ships. We can see this falls into a utility slot category.

Outfits will need to have the matching property to be mounted. This would mean they would need something like:

<slot property="systems">utility</slot>

Where the property="systems" indicates that the outfit can go into slots with the "systems" property.

Example: Llama

The Llama's inherent ship stats:

<ship name="Llama">
 <base_type>Llama</base_type>
 <GFX>llama</GFX>
 <GUI>slim</GUI>
 <sound>engine</sound>
 <class>Yacht</class>
 <price>120000</price>
 <fabricator>Melendez Corp.</fabricator>
 <description>One of the most widely used ships in the galaxy. Renowned for its stability and stubbornness. The design hasn't been modified much since its creation many many years ago. It was one of the first civilian use spacecrafts, first used by aristocracy and now used by everyone who cannot afford better.</description>
 <health>
  <absorb>0</absorb>
  <shield>100</shield>
  <armour>50</armour>
  <energy>320</energy>
  <shield_regen>3</shield_regen>
  <armour_regen>0</armour_regen>
 </health>
 <characteristics>
  <crew>2</crew>
  <mass>83</mass>
  <cap_cargo>20</cap_cargo>
 </characteristics>
 <slots>
  <weapon x="7" y="0" h="1"/>
  <weapon x="-3" y="0" h="2"/>
  <utility prop_exc="systems">Small Generic Systems</utility>
  <utility/>
  <utility/>
  <structure prop_exc="hull">Small Generic Hull</structure>
  <structure prop_exc="engine">Small Generic Engine</structure>
  <structure/>
  <structure/>
 </slots>
</ship> 

Standard issue engine module:

 <engine>
  <thrust>180</thrust>
  <turn>150</turn>
  <speed>200</speed>
  <fuel>400</fuel>
  <energy_regen>8.0</energy_regen>
 </engine>

Standard issue system module:

 <system>
  <cpu>18</cpu>
  <energy_regen>8.7</energy_regen>
  <shield_mod>1.0</shield_mod>
  <shield_regen_mod>1.0</shield_regen_mod>
 </system>

Standard issue hull module:

 <hull>
  <cargo_mod>1.0</cargo_mod>
  <weapon_slots>-1</weapon_slots>
  <armour_mod>1.0</armour_mod>
  <hide_mod>1.5</hide_mod>
  <absorption>0</absorption>
 <hull>