Skip to content

Commit

Permalink
Add pede weakpoint values to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStolk committed Oct 19, 2023
1 parent 188892d commit 1e9c622
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/game-formats/replay-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ Weak points:
| Leviathan | 0, 1, 2, 3, 4, 5 |
| Spider I | 0 |
| Spider II | 0 |
| Centipede | 0 - 24 |
| Gigapede | 0 - 49 |
| Ghostpede | 0 - 9 |

Any other value means the enemy was hit but not damaged.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public static bool IsDagger(this EntityType entityType)
EntityType.Squid3 => userData is >= 0 and < 3,
EntityType.Leviathan => userData is >= 0 and < 6,
EntityType.Squid1 or EntityType.Spider1 or EntityType.Spider2 => userData == 0,
_ => true, // Everything else is a hit by default, including pedes (when damaging a dead pede segment, the ID of the pede is negated, which is ignored automatically).

// Everything else is a hit by default, including pedes.
// When damaging a dead pede segment, the ID of the pede is negated, which is ignored because a negative EntityType does not resolve to a pede.
_ => true,
};

public static int GetInitialTransmuteHp(this EntityType entityType) => entityType switch
Expand Down

0 comments on commit 1e9c622

Please sign in to comment.