Skip to content

Commit

Permalink
еще и сам емаг убираем
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdGinalD committed Nov 1, 2023
1 parent c9bd369 commit e0928b6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions modular_ss220/awaymission_gun/code/items/awaymission_gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@
var/mob/M = loc
M.unEquip(src)

/obj/item/gun/energy/laser/awaymission_aeg/emag_act(mob/user)
. = ..()
if(emagged)
return
if(user)
if(prob(50))
user.visible_message(span_warning("От [name] летят искры!"), span_notice("Вы взломали [name], что привело к перезаписи протоколов безопасности. Устройство может быть использовано вне ограничений"))
playsound(loc, 'sound/effects/sparks4.ogg', 30, 1)
do_sparks(5, 1, src)
emagged = TRUE
selfcharge = TRUE
else
user.visible_message(span_warning("От [name] летят искры... Он сейчас взорвётся!"), span_notice("Ой... Что-то пошло не так!"))
do_sparks(5, 1, src)
update_mob()
explosion(loc, -1, 0, 2)
qdel(src)


// GUNS
/obj/item/gun/energy/laser/awaymission_aeg/rnd
Expand Down

0 comments on commit e0928b6

Please sign in to comment.