lor:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-gdscript data-lang=gdscript><span style=display:flex><span><span style=color:#81a1c1;font-weight:700>func</span> take_damage<span style=color:#eceff4>(</span>amount<span style=color:#eceff4>):</span>
</span></span><span style=display:flex><span>    health <span style=color:#81a1c1>-=</span> amount
</span></span><span style=display:flex><span>    get_node<span style=color:#eceff4>(</span><span style=color:#a3be8c>&#34;../Main/UI/Health