# Copyright (c) 2017 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.  See the GNU General Public License for more details.

ship "Void Sprite"
	noun "creature"
	sprite "ship/void sprite adult"
		"frame rate" 3.2
		rewind
	"never disabled"
	attributes
		category "Medium Warship"
		"hull" 9600
		"required crew" 4
		"bunks" 4
		"mass" 480
		"drag" 8.2
		"heat dissipation" .8
		"cargo space" 40
		"thrust" 20
		"turn" 900
		"hull repair rate" 3
		"energy capacity" 1
		"fuel capacity" 1
		"inscrutable" 1
		"gaslining" 1
	outfits
		Mouthparts? 2
	gun -4 -111
	gun 6 -111
	leak "blood" 40 40
	explode "blood" 40
	"final explode" "void sprite adult death"

effect "blood"
	sprite "effect/blood"
		"no repeat"
		"frame rate" 10
		"random start frame"
	"lifetime" 61
	"random angle" 20
	"random velocity" 1
	"random spin" 5

effect "void sprite adult death"
	sprite "effect/void sprite adult death"
		"no repeat"
		"frame rate" 20
	"lifetime" 16
	"velocity scale" .01



ship "Void Sprite" "Void Sprite (Infant)"
	sprite "ship/void sprite infant"
		"frame rate" 7.4
		rewind
	"never disabled"
	attributes
		category "Light Warship"
		"hull" 2800
		"required crew" 2
		"bunks" 2
		"mass" 200
		"drag" 5.4
		"heat dissipation" .9
		"cargo space" 20
		"thrust" 18
		"turn" 450
		"hull repair rate" 1
		"energy capacity" 1
		"fuel capacity" 1
		"inscrutable" 1
		"gaslining" 1
	outfits
		Mouthparts?
	gun 4 -41
	leak "blood" 60 50
	explode "blood" 25
	"final explode" "void sprite infant death"

effect "void sprite infant death"
	sprite "effect/void sprite infant death"
		"no repeat"
		"frame rate" 15
	"lifetime" 21
	"velocity scale" .01



outfit Mouthparts?
	category "Guns"
	"gun ports" -1
	weapon
		sound "crunch"
		"hit effect" "void sprite chewing"
		"inaccuracy" 180
		"velocity" 10
		"lifetime" 1
		"reload" 70
		"burst reload" 35
		"burst count" 3
		"cluster"
		"shield damage" 300
		"hull damage" 300

effect "void sprite chewing"
	sprite "effect/smoke"
		"no repeat"
		"frame rate" 15
	"lifetime" 29
	"random angle" 360
	"random velocity" .4
	"random spin" 2
	"random frame rate" 5
	"velocity scale" .0001



fleet "Void Sprites"
	government "Indigenous Lifeform"
	cargo 0
	personality
		timid mining harvests mute
	variant
		"Void Sprite"
	variant
		"Void Sprite"
		"Void Sprite (Infant)"
	variant
		"Void Sprite"
		"Void Sprite (Infant)" 2
	variant
		"Void Sprite"
		"Void Sprite (Infant)" 3
