-
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.
- Loading branch information
1 parent
ec3fa1c
commit 5245738
Showing
9 changed files
with
106 additions
and
39 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,40 @@ | ||
import my | ||
import tp | ||
|
||
|
||
def on_targeted(me, x, y): | ||
my.place_at(me, "random_food", 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, 5) | ||
my.text_a_or_an(self, "a") | ||
my.text_description_long(self, "Summon some tasty and freshly made dungeon food. Made by what or whom is best not to ask.") | ||
my.text_description_long2(self, "This service is brought to you by Dungeon Dash.") | ||
my.text_description_short(self, "Spell, summon food") | ||
my.text_description_very_short(self, "SumFood") | ||
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_food") | ||
my.tile(self, tile="spell_summon_food_activated") | ||
my.tp_update(self) | ||
|
||
|
||
def init(): | ||
tp_init(name="spell_summon_food", text_long_name="summon food", text_short_name="summon food") | ||
|
||
|
||
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