Refactor SpiceBloom

- Remove SpiceBloom.RespawnDelay

It is basically redundant (giving the spice bloom spawner a longer
self-kill delay at yaml level has the same effect) and uses the savegame-blocking DelayedAction, so just removing it is the cleanest solution.

- Rename SpiceBloom GrowthDelay to Lifetime

- Refactor spicebloom.spawnpoint to not use SpiceBloom trait and make it visible in editor with corresponding tooltip.
This commit is contained in:
reaperrr
2016-11-04 23:48:13 +01:00
parent 0a53a2022e
commit 76f8fe02e2
3 changed files with 49 additions and 30 deletions

View File

@@ -1,16 +1,22 @@
spicebloom.spawnpoint:
HiddenUnderShroud:
Type: CenterPosition
EditorOnlyTooltip:
Name: Spice Bloom spawnpoint
AlwaysVisible:
RenderSpritesEditorOnly:
Image: spicebloom
WithSpriteBody:
Sequence: grow1
BodyOrientation:
QuantizedFacings: 1
RenderSprites:
Image: spicebloom
SpiceBloom:
GrowthTerrainTypes: SpiceSand
SpawnActor: spicebloom
GrowthSequences: grow0
GrowthDelay: 250, 750
RespawnDelay: 1, 2
ConditionManager:
GrantConditionOnTerrain:
Condition: clearsand
TerrainTypes: SpiceSand
KillsSelf:
RequiresCondition: clearsand
Delay: 1750, 3250
SpawnActorOnDeath:
Actor: spicebloom
Explodes:
Weapon: BloomSpawn
EmptyWeapon: BloomSpawn