-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: do not use up spell points when cancelling spell
- Loading branch information
1 parent
5245738
commit 31c4de3
Showing
14 changed files
with
799 additions
and
654 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import my | ||
import tp | ||
|
||
|
||
def on_targeted(me, x, y): | ||
my.place_at(me, "random_rock", x, y) | ||
|
||
|
||
def tp_init(name, text_long_name, text_short_name): | ||
global self | ||
self = tp.Tp(name, text_long_name, text_short_name) | ||
# begin sort marker | ||
my.gfx_targeted_projectile(self, "projectile_magical_effect") | ||
my.is_loggable(self, True) | ||
my.is_spell(self, True) | ||
my.is_target_select(self, True) | ||
my.is_usable(self, True) | ||
my.on_targeted_do(self, "me.on_targeted()") | ||
my.range_max(self, 7) | ||
my.spell_base_name(self, name) | ||
my.spell_cost(self, 3) | ||
my.text_a_or_an(self, "a") | ||
my.text_description_long(self, "Summon a slab of solid rock that you can use as a means of defense of treat as a new pet and something to talk to.") | ||
my.text_description_short(self, "Spell, summon rock") | ||
my.text_description_very_short(self, "SumRock") | ||
my.z_depth(self, my.MAP_DEPTH_OBJ) | ||
my.z_prio(self, my.MAP_Z_PRIO_BEHIND) | ||
# end sort marker | ||
|
||
my.tile(self, tile="spell_summon_rock") | ||
my.tile(self, tile="spell_summon_rock_activated") | ||
my.tp_update(self) | ||
|
||
|
||
def init(): | ||
tp_init(name="spell_summon_rock", text_long_name="summon rock", text_short_name="summon rock") | ||
|
||
|
||
init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.