Fixes PDA bombing have equal chances to work on PDAs without manifest access vs PDAs with it (#55036)

* Makes extra difficulty actually work

0

* Actually fixes it as of what Fikou suggested

* no space, sorry

Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com>

Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com>
This commit is contained in:
Bond
2020-11-24 18:21:39 +08:00
committed by GitHub
co-authored by ATH1909
parent d214170810
commit eab04c0631
@@ -69,8 +69,6 @@
difficulty += BitCount(target.cartridge.access&(CART_MEDICAL | CART_SECURITY | CART_ENGINE | CART_CLOWN | CART_JANITOR | CART_MANIFEST))
if(target.cartridge.access & CART_MANIFEST)
difficulty++ //if cartridge has manifest access it has extra snowflake difficulty
else
difficulty += 2
if(SEND_SIGNAL(target, COMSIG_PDA_CHECK_DETONATE) & COMPONENT_PDA_NO_DETONATE || prob(difficulty * 15))
U.show_message("<span class='danger'>An error flashes on your [src].</span>", MSG_VISUAL)
else