Skip to content

Commit

Permalink
Add Rebound as Keeper Power (dkfans#2856)
Browse files Browse the repository at this point in the history
Works the same as before, but modders can now add a castable spell to their maps.

---------

Co-authored-by: Loobinex <[email protected]>
  • Loading branch information
walt253 and Loobinex authored Dec 24, 2023
1 parent 7a95f3d commit 570cf6c
Show file tree
Hide file tree
Showing 31 changed files with 586 additions and 35 deletions.
49 changes: 35 additions & 14 deletions config/fxdata/magic.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; KeeperFX Magic Configuration file
; file version 0.80
; KeeperFX Magic Configuration file version 1.0

[common]
; Spells are casted by creatures at their position. They can affect the caster or surrounding
Expand All @@ -10,7 +9,7 @@ SpellsCount = 30
ShotsCount = 33
; Powers are spells which have several levels of strengths and can be casted not only
; by a creature, but also by a keeper
PowerCount = 23
PowerCount = 24
; Specials are rare boxes a player can find, which provide reward of one time use
SpecialsCount = 10

Expand Down Expand Up @@ -79,6 +78,7 @@ SymbolSprites = 410 410
Name = SPELL_REBOUND
CastAtThing = 0
ShotModel = NOSHOT
SpellPower = POWER_REBOUND
SpellFlags = 8
Duration = 250
SelfCasted = 1 926
Expand Down Expand Up @@ -1542,7 +1542,7 @@ PointerSprites = 120
PanelTabIndex = 9
SoundSamples = 837
SoundPlayed = 927
Power = 0 5 6 7 8 9 10 11 12
Power = 0 5 6 7 8 9 10 11 12
Cost = 1000 1200 1400 1600 1800 2000 2200 2400 2600
Duration = 100
Castability = ALL_GROUND REVEALED_TEMP
Expand All @@ -1561,7 +1561,7 @@ PointerSprites = 104
PanelTabIndex = 10
SoundSamples = 829
SoundPlayed = 37
Power = 80 120 160 210 280 360 480 680 950
Power = 80 120 160 210 280 360 480 680 950
Cost = 300 400 500 600 700 800 900 1000 1200
Duration = 16
Castability = ALL_GROUND OWNED_CRTRS ALLIED_CRTRS CUSTODY_CRTRS BOUND_CRTRS
Expand All @@ -1580,8 +1580,8 @@ PointerSprites = 0
PanelTabIndex = 8
SoundSamples = 830
SoundPlayed = 58
Power = 0 0 0 0 0 0 0 0 0
Cost =1000 0 0 0 0 0 0 0 0
Power = 0 0 0 0 0 0 0 0 0
Cost = 1000 0 0 0 0 0 0 0 0
Duration = 0
Castability = ANYWHERE UNREVEALED
Artifact = SPELLBOOK_HLDAUD
Expand Down Expand Up @@ -1621,7 +1621,7 @@ SoundSamples = 838
; 938 is an alternative power speed sound
SoundPlayed = 38
Power = 300 400 500 600 700 800 900 1000 1100
Cost = 100 200 300 400 500 600 700 800 900
Cost = 100 200 300 400 500 600 700 800 900
Duration = 0
Castability = ALL_GROUND OWNED_CRTRS ALLIED_CRTRS CUSTODY_CRTRS BOUND_CRTRS
Artifact = SPELLBOOK_SPDC
Expand All @@ -1640,7 +1640,7 @@ PanelTabIndex = 12
SoundSamples = 825
SoundPlayed = 153
Power = 300 400 500 600 700 800 900 1000 1100
Cost = 100 200 300 400 500 600 700 800 900
Cost = 100 200 300 400 500 600 700 800 900
Duration = 0
Castability = ALL_GROUND OWNED_CRTRS BOUND_CRTRS
Artifact = SPELLBOOK_PROT
Expand All @@ -1659,7 +1659,7 @@ PanelTabIndex = 7
SoundSamples = 832
SoundPlayed = 154
Power = 300 400 500 600 700 800 900 1000 1100
Cost = 100 200 300 400 500 600 700 800 900
Cost = 100 200 300 400 500 600 700 800 900
Duration = 0
Castability = ALL_GROUND OWNED_CRTRS BOUND_CRTRS
Artifact = SPELLBOOK_CONCL
Expand Down Expand Up @@ -1715,8 +1715,8 @@ PointerSprites = 72
PanelTabIndex = 16
SoundSamples = 839
SoundPlayed = 73
Power = 0 1 2 3 4 5 6 7 8
Cost =10000 12000 14000 16000 18000 20000 22000 24000 26000
Power = 0 1 2 3 4 5 6 7 8
Cost = 10000 12000 14000 16000 18000 20000 22000 24000 26000
Duration = 0
Castability = ALL_TALL CLAIMABLE
Artifact = SPELLBOOK_DWAL
Expand All @@ -1734,7 +1734,7 @@ PointerSprites = 182
PanelTabIndex = 17
SoundSamples = 0
SoundPlayed = 0
Power = 40 60 80 100 120 140 160 180 200
Power = 40 60 80 100 120 140 160 180 200
Cost = 2000 2100 2200 2300 2400 2500 2600 2700 2800
Cooldown = 30
Castability = ALL_GROUND OWNED_CRTRS BOUND_CRTRS ONLY_DIGGERS NEEDS_DELAY
Expand Down Expand Up @@ -1839,6 +1839,27 @@ PlayerState = PLAYER_STATE_NONE
ParentPower = POWER_HAND
Functions = do_not_expand

[power23]
Name = POWER_REBOUND
NameTextID = 1053
TooltipTextID = 230
SymbolSprites = 556 412
PointerSprites = 16
PanelTabIndex = 28
SoundSamples = 0
SoundPlayed = 926
; Because Rebound is now linked to the creature spell all the levels share the same power by defaut, with 'general_expand' you have to change these values however you like.
Power = 250 250 250 250 250 250 250 250 250
Cost = 100 200 300 400 500 600 700 800 900
Duration = 0
Castability = ALL_GROUND OWNED_CRTRS BOUND_CRTRS
Artifact = SPELLBOOK_RBND
Properties =
PlayerState = PLAYER_STATE_REBOUND
ParentPower = NOPOWER
; To have this power chargeable like other replace 'do_not_expand' with 'general_expand'.
Functions = do_not_expand

[special0]
; Internal name of the dungeon special, used in script and config files
Name = NOSPECIAL
Expand Down Expand Up @@ -1910,4 +1931,4 @@ Name = SPECIAL_CUSTOM
Artifact = SPECBOX_CUSTOM
TooltipTextID = 1005
SpeechPlayed = 0
ActivationEffect = EFFECT_SPANGLE_MULTICOLOURED
ActivationEffect = EFFECT_SPANGLE_MULTICOLOURED
29 changes: 26 additions & 3 deletions config/fxdata/objects.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3730,7 +3730,7 @@ LightUnaffected = 0
LightIntensity = 0
LightRadius = 0
LightIsDynamic = 0
RandomiseStartframe = 1
RandomStartFrame = 1
DrawClass = 2
Persistence = 2
Immobile = 0
Expand All @@ -3752,9 +3752,32 @@ LightUnaffected = 0
LightIntensity = 0
LightRadius = 0
LightIsDynamic = 0
RandomiseStartframe = 1
RandomStartFrame = 1
DrawClass = 2
TransparencyFlags = 3
Persistence = 2
Immobile = 0
Properties = DESTROYED_ON_ROOM_CLAIM DESTROYED_ON_ROOM_PLACE
Properties = DESTROYED_ON_ROOM_CLAIM DESTROYED_ON_ROOM_PLACE

[object163]
Name = SPELLBOOK_RBND
Genre = SPELLBOOK
AnimationID = 777
AnimationSpeed = 256
Size_XY = 0
Size_Z = 0
MaximumSize = 300
DestroyOnLava = 1
DestroyOnLiquid = 0
Health = 0
FallAcceleration = 10
LightUnaffected = 0
MapIcon = -1
LightIntensity = 62
LightRadius = 4
LightIsDynamic = 0
RandomStartFrame = 0
DrawClass = 2
Persistence = 1
Immobile = 1
Properties = CHOWNED_ON_ROOM_CLAIM
1 change: 1 addition & 0 deletions config/fxdata/rules.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Research = ROOM SCAVENGER 27500
Research = MAGIC POWER_CHICKEN 20000
Research = MAGIC POWER_DISEASE 20000
Research = MAGIC POWER_TIME_BOMB 25000
Research = MAGIC POWER_REBOUND 12000
Research = MAGIC POWER_ARMAGEDDON 100000
Research = MAGIC POWER_DESTROY_WALLS 750000

Expand Down
32 changes: 31 additions & 1 deletion lang/gtext_chi.po
Original file line number Diff line number Diff line change
Expand Up @@ -6548,4 +6548,34 @@ msgstr "基岩:未声明的岩石地板。你不能声明它或在上面建造
#: guitext:1052
msgctxt "Slab description"
msgid "Dense Gold Seam: Holds a lot of wealth for your Imps to extract. "
msgstr "密集的金属矿层:为你的小鬼提供丰富的财富。"
msgstr "密集的金属矿层:为你的小鬼提供丰富的财富。"

#: guitext:1053
msgctxt "Keeper spell name"
msgid "Rebound"
msgstr "反弹术"

#: guitext:1054
msgctxt "Keeper spell name"
msgid "Freeze"
msgstr "冰冻术"

#: guitext:1055
msgctxt "Keeper spell name"
msgid "Slow"
msgstr "缓慢术"

#: guitext:1056
msgctxt "Keeper spell name"
msgid "Flight"
msgstr "飞行术"

#: guitext:1057
msgctxt "Keeper spell name"
msgid "Illumination"
msgstr "照明术"

#: guitext:1058
msgctxt "Keeper spell name"
msgid "Sight"
msgstr "邪眼术"
32 changes: 31 additions & 1 deletion lang/gtext_cht.po
Original file line number Diff line number Diff line change
Expand Up @@ -6650,4 +6650,34 @@ msgstr "基岩:未声明的岩石地板。你不能声明它或在上面建造
#: guitext:1052
msgctxt "Slab description"
msgid "Dense Gold Seam: Holds a lot of wealth for your Imps to extract. "
msgstr "密集的金属矿层:为你的小鬼提供丰富的财富。"
msgstr "密集的金属矿层:为你的小鬼提供丰富的财富。"

#: guitext:1053
msgctxt "Keeper spell name"
msgid "Rebound"
msgstr "反弹术"

#: guitext:1054
msgctxt "Keeper spell name"
msgid "Freeze"
msgstr "冻结术"

#: guitext:1055
msgctxt "Keeper spell name"
msgid "Slow"
msgstr "缓慢术"

#: guitext:1056
msgctxt "Keeper spell name"
msgid "Flight"
msgstr "飞行术"

#: guitext:1057
msgctxt "Keeper spell name"
msgid "Illumination"
msgstr "照明术"

#: guitext:1058
msgctxt "Keeper spell name"
msgid "Sight"
msgstr "恶魔之眼"
32 changes: 31 additions & 1 deletion lang/gtext_cze.po
Original file line number Diff line number Diff line change
Expand Up @@ -6902,4 +6902,34 @@ msgstr "Základní skála: Neupravená kamenitá podlaha. Nemůžete ji zabrat a
#: guitext:1052
msgctxt "Slab description"
msgid "Dense Gold Seam: Holds a lot of wealth for your Imps to extract. "
msgstr "Hustý zlatý základ: Obsahuje mnoho bohatství, které mohou tví Skřeti těžit."
msgstr "Hustý zlatý základ: Obsahuje mnoho bohatství, které mohou tví Skřeti těžit."

#: guitext:1053
msgctxt "Keeper spell name"
msgid "Rebound"
msgstr "Odražení"

#: guitext:1054
msgctxt "Keeper spell name"
msgid "Freeze"
msgstr "Zmražení"

#: guitext:1055
msgctxt "Keeper spell name"
msgid "Slow"
msgstr "Zpomaleni"

#: guitext:1056
msgctxt "Keeper spell name"
msgid "Flight"
msgstr "Letani"

#: guitext:1057
msgctxt "Keeper spell name"
msgid "Illumination"
msgstr "Svetelkovani"

#: guitext:1058
msgctxt "Keeper spell name"
msgid "Sight"
msgstr "Pohled"
32 changes: 31 additions & 1 deletion lang/gtext_dut.po
Original file line number Diff line number Diff line change
Expand Up @@ -6919,4 +6919,34 @@ msgstr "Grondgesteente: Ongeclaimde rotsvloer. Je kunt het niet opeisen of erop
#: guitext:1052
msgctxt "Slab description"
msgid "Dense Gold Seam: Holds a lot of wealth for your Imps to extract. "
msgstr "Dichte Goudader: Bevat veel rijkdom voor je Dondersteentjes om te delven."
msgstr "Dichte Goudader: Bevat veel rijkdom voor je Dondersteentjes om te delven."

#: guitext:1053
msgctxt "Keeper spell name"
msgid "Rebound"
msgstr "Terugkaatsen"

#: guitext:1054
msgctxt "Keeper spell name"
msgid "Freeze"
msgstr "Bevriezen"

#: guitext:1055
msgctxt "Keeper spell name"
msgid "Slow"
msgstr "Vertragen"

#: guitext:1056
msgctxt "Keeper spell name"
msgid "Flight"
msgstr "Vliegen"

#: guitext:1057
msgctxt "Keeper spell name"
msgid "Illumination"
msgstr "Verlichting"

#: guitext:1058
msgctxt "Keeper spell name"
msgid "Sight"
msgstr "Duivelsoog"
32 changes: 31 additions & 1 deletion lang/gtext_eng.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6098,4 +6098,34 @@ msgstr ""
#: guitext:1052
msgctxt "Slab description"
msgid "Dense Gold Seam: Holds a lot of wealth for your Imps to extract. "
msgstr ""
msgstr ""

#: guitext:1053
msgctxt "Keeper spell name"
msgid "Rebound"
msgstr ""

#: guitext:1054
msgctxt "Keeper spell name"
msgid "Freeze"
msgstr ""

#: guitext:1055
msgctxt "Keeper spell name"
msgid "Slow"
msgstr ""

#: guitext:1056
msgctxt "Keeper spell name"
msgid "Flight"
msgstr ""

#: guitext:1057
msgctxt "Keeper spell name"
msgid "Illumination"
msgstr ""

#: guitext:1058
msgctxt "Keeper spell name"
msgid "Sight"
msgstr ""
Loading

0 comments on commit 570cf6c

Please sign in to comment.