[s] fixes being able to PDA bomb other PDA uplinks and captain PDAs and AIs (#15512)

* Update uplink.dm

* Update bomberman.dm
This commit is contained in:
ynot01
2022-08-29 17:13:19 -04:00
committed by GitHub
parent eaeb295acf
commit 3d3bd4399c
2 changed files with 2 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ GLOBAL_LIST_EMPTY(PDABombCodes)
if(targetid) // Adjust difficulty based on target's access
difficulty += BitCount(text2num(targetid.access_txt) & (ACCESS_MEDICAL | ACCESS_SECURITY | ACCESS_ENGINE | ACCESS_THEATRE | ACCESS_JANITOR | ACCESS_HEADS))
if(SEND_SIGNAL(target, COMSIG_PDA_CHECK_DETONATE) & COMPONENT_PDA_NO_DETONATE || prob(difficulty * 15))
if(SEND_SIGNAL(target_computer, COMSIG_PDA_CHECK_DETONATE) & COMPONENT_PDA_NO_DETONATE || prob(difficulty * 15))
computer.visible_message(span_notice("Detonation failed. [bomb.uses] charges remaining."), null, null, 1)
else
log_bomber(usr, "triggered a PDA explosion on", target.username, "[!is_special_character(usr) ? "(TRIGGED BY NON-ANTAG)" : ""]")