Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Mar 2, 2024
1 parent 7384f75 commit fca9ade
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/game/objects/items/explosives/plastic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
var/list/breachable = list(/obj/structure/window, /turf/closed, /obj/structure/machinery/door, /obj/structure/mineral_door , /obj/structure/cargo_container)
antigrief_protection = TRUE //Should it be checked by antigrief?

var/req_skill = SKILL_ENGINEER
var/req_skill_level = SKILL_ENGINEER_TRAINED

/obj/item/explosive/plastic/Destroy()
disarm()
return ..()
Expand Down Expand Up @@ -65,7 +68,7 @@

if(user.action_busy || !flag)
return
if(!skillcheck(user, SKILL_ENGINEER, SKILL_ENGINEER_TRAINED))
if(!skillcheck(user, req_skill, req_skill_level))
to_chat(user, SPAN_WARNING("You don't seem to know how to use [src]..."))
return
if(!can_place(user, target))
Expand Down Expand Up @@ -363,6 +366,9 @@
overlay_image = "riot-active"
shrapnel_volume = 20
shrapnel_type = /datum/ammo/bullet/shrapnel/rubber
req_skill = SKILL_POLICE
req_skill_level = SKILL_POLICE_SKILLED
antigrief_protection = FALSE

/obj/item/explosive/plastic/breaching_charge/plasma
name = "plasma charge"
Expand Down

0 comments on commit fca9ade

Please sign in to comment.