Skip to content

Commit

Permalink
bug: monst damage needs to take account of num of attacks and speed
Browse files Browse the repository at this point in the history
  • Loading branch information
goblinhack committed Jul 8, 2023
1 parent e9501b2 commit 4e27357
Show file tree
Hide file tree
Showing 84 changed files with 337 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Content:
- Multiple skill trees
- Looking for feedback
<!-- begin type marker -->
- 106 x monsters
- 108 x monsters
- 52 x food
- 20 x treasure
- 13 x weapons
Expand Down
Binary file modified data/gfx.tgz
Binary file not shown.
17 changes: 9 additions & 8 deletions python/gfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2565,18 +2565,19 @@ def init_tiles_16x16_main():
"duck3.5",
"duck3.6",
"duck3.dead",
"jackalope.1",
"jackalope.2",
"jackalope.3",
"jackalope.4",
"jackalope.5",
"jackalope.6",
"jackalope.7",
"jackalope.dead",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
############################################################
]

my.tile_load_arr_sprites(
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/bat_greater.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 200)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 10)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/bat_lesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 300)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/bat_minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 200)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/bear_undead.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def tp_init(name, text_long_name):
my.is_undead(self, True)
my.move_speed(self, 60)
my.noise_decibels_hearing(self, 1)
my.noise_on_moving(self, 35)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/bearowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 120)
my.noise_decibels_hearing(self, 1)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/belcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def tp_init(name, text_long_name, text_short_name):
my.light_dist(self, 2)
my.move_speed(self, 100)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "1d4")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/blinkcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def tp_init(name, text_long_name):
my.jump_distance(self, 3)
my.move_speed(self, 150)
my.noise_decibels_hearing(self, 10)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "-10")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/bloodbug.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def tp_init(name, text_long_name):
my.jump_distance(self, 2)
my.move_speed(self, 25)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/carcas_creeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 10)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "-30")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/centipede.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 75)
my.noise_decibels_hearing(self, 10)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "-30")
my.on_born_do(self, "me.on_born()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def tp_init(name, text_long_name, text_short_name):
my.light_dist(self, 2)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 15)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "1d4")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/crab_sewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def tp_init(name, text_long_name):
my.jump_distance(self, 2)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "1d6")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/cthulite.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def tp_init(name, text_long_name):
my.light_dist(self, 2)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/death_hornet.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 250)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/demon_fire.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def tp_init(name, text_long_name):
my.light_dist(self, 2)
my.move_speed(self, 150)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/dogman.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 100)
my.noise_decibels_hearing(self, 10)
my.noise_on_moving(self, 50)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "1d4")
my.on_born_do(self, "me.on_born()")
Expand Down
4 changes: 3 additions & 1 deletion python/things/monsters/duck1.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def tp_init(name, text_long_name):
my.gfx_ascii_fade_with_dist(self, True)
my.gfx_ascii_shown(self, True)
my.gfx_pixelart_animated_can_hflip(self, True)
my.gfx_pixelart_bounce_on_move(self, True)
my.gfx_pixelart_animated(self, True)
my.gfx_pixelart_bounce_on_move(self, True)
my.gfx_pixelart_health_bar_shown(self, True)
my.gfx_pixelart_oversized_and_on_floor(self, True)
my.gfx_pixelart_reflection(self, True)
Expand Down Expand Up @@ -88,6 +88,7 @@ def tp_init(name, text_long_name):
my.is_described_when_hovering_over(self, True)
my.is_duck(self, True)
my.is_eater_of_meat(self, True)
my.is_eater_of_plants(self, True)
my.is_hittable(self, True)
my.is_immune_to_water(self, True)
my.is_interesting(self, True)
Expand All @@ -107,6 +108,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 15)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
5 changes: 3 additions & 2 deletions python/things/monsters/duck2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def tp_init(name, text_long_name):
my.dmg_nat_att_type(self, "webbed")
my.environ_hates_fire(self, 100)
my.environ_likes_shallow_water(self, True)
my.gfx_pixelart_animated_can_hflip(self, True)
my.gfx_pixelart_bounce_on_move(self, True)
my.gfx_anim_use(self, "attack_red")
my.gfx_ascii_fade_with_dist(self, True)
my.gfx_ascii_shown(self, True)
my.gfx_pixelart_animated_can_hflip(self, True)
my.gfx_pixelart_animated(self, True)
my.gfx_pixelart_bounce_on_move(self, True)
my.gfx_pixelart_health_bar_shown(self, True)
my.gfx_pixelart_oversized_and_on_floor(self, True)
my.gfx_pixelart_reflection(self, True)
Expand Down Expand Up @@ -109,6 +109,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 125)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 15)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
5 changes: 3 additions & 2 deletions python/things/monsters/duck3.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def tp_init(name, text_long_name):
my.dmg_nat_att_type(self, "metal wing")
my.environ_hates_fire(self, 100)
my.environ_likes_shallow_water(self, True)
my.gfx_pixelart_animated_can_hflip(self, True)
my.gfx_pixelart_bounce_on_move(self, True)
my.gfx_anim_use(self, "attack_red")
my.gfx_ascii_fade_with_dist(self, True)
my.gfx_ascii_shown(self, True)
my.gfx_pixelart_animated_can_hflip(self, True)
my.gfx_pixelart_animated(self, True)
my.gfx_pixelart_bounce_on_move(self, True)
my.gfx_pixelart_health_bar_shown(self, True)
my.gfx_pixelart_oversized_and_on_floor(self, True)
my.gfx_pixelart_reflection(self, True)
Expand Down Expand Up @@ -109,6 +109,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 100)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 15)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/eel.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/electric_eel.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/ettin.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 45)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/flameskull.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def tp_init(name, text_long_name):
my.light_dist(self, 2)
my.move_speed(self, 200)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/fleshbee.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/gargoyle_baby.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def tp_init(name, text_long_name):
my.is_very_heavy(self, True)
my.move_speed(self, 100)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_awake_do(self, "me.on_awake()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/gargoyle_moving.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def tp_init(name, text_long_name):
my.jump_distance(self, 2)
my.move_speed(self, 200)
my.noise_decibels_hearing(self, 60)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_hit_and_still_alive_do(self, "me.on_hit_and_still_alive()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/gargoyle_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def tp_init(name, text_long_name):
my.is_very_heavy(self, True)
my.move_speed(self, 100)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 0)
my.normal_placement_rules(self, True)
my.on_awake_do(self, "me.on_awake()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/ghost.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def tp_init(name, text_long_name):
my.light_dist(self, 2)
my.move_speed(self, 200)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 1)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_you_nat_attack_attempt_do(self, "me.on_you_nat_attack_attempt()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/ghost_minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def tp_init(name, text_long_name):
my.light_dist(self, 2)
my.move_speed(self, 200)
my.noise_decibels_hearing(self, 0)
my.noise_on_moving(self, 1)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_you_nat_attack_attempt_do(self, "me.on_you_nat_attack_attempt()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/gloat.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def tp_init(name, text_long_name, text_short_name):
my.light_dist(self, 2)
my.move_speed(self, 25)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_death_do(self, "me.on_death()")
my.on_you_are_on_fire_do(self, "me.on_fire()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/goat_battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def tp_init(name, text_long_name):
my.jump_distance(self, 2)
my.move_speed(self, 150)
my.noise_decibels_hearing(self, 10)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "1d6")
my.on_born_do(self, "me.on_born()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/goat_demon.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def tp_init(name, text_long_name):
my.jump_distance(self, 2)
my.move_speed(self, 150)
my.noise_decibels_hearing(self, 10)
my.noise_on_moving(self, 25)
my.normal_placement_rules(self, True)
my.nutrition_dice(self, "1d6")
my.on_born_do(self, "me.on_born()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/goldfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 50)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down
1 change: 1 addition & 0 deletions python/things/monsters/iceman.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def tp_init(name, text_long_name):
my.is_tickable(self, True)
my.move_speed(self, 50)
my.noise_decibels_hearing(self, 5)
my.noise_on_moving(self, 5)
my.normal_placement_rules(self, True)
my.on_born_do(self, "me.on_born()")
my.on_death_do(self, "me.on_death()")
Expand Down

0 comments on commit 4e27357

Please sign in to comment.