# Different Attack Types

When interacting with an enemy, this battle screen is shown.

<figure><img src="https://1055530831-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTLAKl9MnL4UmPhZlb3vF%2Fuploads%2FW3PmmkUfHIonHOlbiX3r%2Fimage.png?alt=media&#x26;token=c48ce5d4-c048-44b1-a377-8b8bffaeca76" alt=""><figcaption></figcaption></figure>

The player has two different attacks available to them. One might be more or less effective depending on which enemy the player is facing.

<pre><code><strong>// ...
</strong>case "enemyCheeto":
    // resistant to piercing damage
    player.OnAttack(-3);
    break;
    
// ...
case "enemyCheeto":
    // weak to bludgeoning damage
    player.OnAttack(-7);
    break;

</code></pre>

The player character becomes exhausted if using the bludgeoning attack, so he will skip a turn of combat to rest. This allows the enemy to hit him an additional time before being ready again! The player must consider whether it would be fatal to get hit an additional time to do more damage.
