107 lines
2.3 KiB
TOML
107 lines
2.3 KiB
TOML
[ship."gypsum"]
|
|
name = "Gypsum"
|
|
sprite = "ship::gypsum"
|
|
thumbnail = "icon::gypsum"
|
|
size = 100
|
|
mass = 1
|
|
hull = 200
|
|
linear_drag = 0.2
|
|
angular_drag = 0.2
|
|
|
|
# TODO: disable
|
|
|
|
space.outfit = 200
|
|
space.engine = 50
|
|
space.weapon = 50
|
|
|
|
engines = [{ x = 0.0, y = -1, size = 25.0 }]
|
|
guns = [{ x = 0.0, y = 1 }, { x = 0.1, y = 0.80 }, { x = -0.1, y = 0.80 }]
|
|
|
|
|
|
# Show these once we've been reduced to this much hull
|
|
damage.hull = 190
|
|
# Spawn this effect once every n seconds, on average
|
|
damage.effects = [
|
|
{ effect = "blue spark", frequency = 3 },
|
|
{ effect = "yellow spark", frequency = 1 },
|
|
]
|
|
|
|
|
|
# Length of death sequence, in seconds
|
|
collapse.length = 5.0
|
|
|
|
# Effects to create during the collapse sequence.
|
|
# On average, `count` will be spawned over the sequence,
|
|
# with a distribution of (x^2 + 0.1)
|
|
collapse.effects = [
|
|
{ effect = "small explosion", count = 30 },
|
|
{ effect = "large explosion", count = 5 },
|
|
]
|
|
|
|
|
|
collision = [
|
|
#[rustfmt:skip],
|
|
[0.53921, 1.0000],
|
|
[0.53921, 0.29343],
|
|
[0.63725, 0.29343],
|
|
[0.63725, -0.03088],
|
|
[0.90019, -0.03088],
|
|
[0.90019, -0.61776],
|
|
[0.66666, -0.61776],
|
|
[0.66666, -0.86486],
|
|
[0.24509, -0.86486],
|
|
[0.24509, -1.00000],
|
|
|
|
[-0.24509, -1.00000],
|
|
[-0.24509, -0.86486],
|
|
[-0.66666, -0.86486],
|
|
[-0.66666, -0.61776],
|
|
[-0.90019, -0.61776],
|
|
[-0.90019, -0.03088],
|
|
[-0.63725, -0.03088],
|
|
[-0.63725, 0.29343],
|
|
[-0.53921, 0.29343],
|
|
[-0.53921, 1.0000],
|
|
]
|
|
|
|
|
|
# Scripted explosion
|
|
[[ship."gypsum".collapse.event]]
|
|
time = 4.9
|
|
effects = [
|
|
#[rustfmt:skip],
|
|
{ effect = "small explosion", count = 8 },
|
|
{ effect = "large explosion", count = 5 },
|
|
{ effect = "huge explosion", count = 1, pos = [0, 0] },
|
|
{ effect = "huge explosion", count = 4 },
|
|
]
|
|
|
|
# Scripted explosion
|
|
[[ship."gypsum".collapse.event]]
|
|
time = 0.0
|
|
effects = [
|
|
#[rustfmt:skip],
|
|
{ effect = "small explosion", count = 3 },
|
|
{ effect = "large explosion", count = 1 },
|
|
]
|
|
|
|
# Play a sprite reel (or change sprite)
|
|
#[[ship."Gypsum".death.collapse.event]]
|
|
#time = 10.0
|
|
#reel = "gypsum post-death"
|
|
|
|
# Create debris
|
|
#[[ship."Gypsum".death.collapse.event]]
|
|
#time = "end"
|
|
#physics = "inherit"
|
|
# OR (relative to original rigidbody)
|
|
#physics.position = [0, 0]
|
|
#physics.velocity = [0, 0]
|
|
#physics.angle = 0
|
|
#physics.angvel = 0
|
|
#debris = "debris"
|
|
|
|
# Burning, interactable, destructible debris
|
|
#[debris]
|
|
#effects = [{ type = "small explosion", count = 10 }]
|