Skip to content

Comments

Verso combat: Override less of throwing_enemy.gd#1870

Merged
wjt merged 1 commit intomainfrom
wjt/verso-combat-override-less-of-throwing-enemy-gd
Feb 4, 2026
Merged

Verso combat: Override less of throwing_enemy.gd#1870
wjt merged 1 commit intomainfrom
wjt/verso-combat-override-less-of-throwing-enemy-gd

Conversation

@wjt
Copy link
Member

@wjt wjt commented Jan 30, 2026

Previously throwing_enemy_health.gd overrode shoot_projectile() with two changes:

  1. It adjusts the distance from the enemy that the projectile spawns;
  2. It sets can_hit_enemy = true on the projectile.

Since this scene was first written, it has become possible to adjust
both of these properties.

Make a copy of the projectile, verso_projectile.tscn, which sets
can_hit_enemy to true.

Adjust ThrowingEnemyHealth.tscn to use this copy of the projectile, and
to set the distance to 75.

Delete the shoot_projectile() override.

Resolves #1316

@wjt wjt requested review from a team as code owners January 30, 2026 14:54
@wjt wjt force-pushed the wjt/verso-combat-override-less-of-throwing-enemy-gd branch from 81f2dee to 47148a9 Compare January 30, 2026 14:57
@github-actions
Copy link

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/verso-combat-override-less-of-throwing-enemy-gd.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Previously throwing_enemy_health.gd overrode shoot_projectile() with two changes:

1. It adjusts the distance from the enemy that the projectile spawns;
2. It sets can_hit_enemy = true on the projectile.

Since this scene was first written, it has become possible to adjust
both of these properties.

Make a copy of the projectile, verso_projectile.tscn, which sets
can_hit_enemy to true.

Adjust ThrowingEnemyHealth.tscn to use this copy of the projectile, and
to set the distance to 75.

Delete the shoot_projectile() override.

Resolves #1316
@wjt wjt force-pushed the wjt/verso-combat-override-less-of-throwing-enemy-gd branch from 47148a9 to 2216c49 Compare February 4, 2026 10:18
@wjt
Copy link
Member Author

wjt commented Feb 4, 2026

I'm going to merge this because I am refactoring the projectile-spawning logic.

@wjt wjt merged commit 8633b43 into main Feb 4, 2026
5 checks passed
@wjt wjt deleted the wjt/verso-combat-override-less-of-throwing-enemy-gd branch February 4, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verso: Use new projectile configuration properties

1 participant