Skip to content

Commit

Permalink
tweak(silicon): removes lack of missing brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Doster-d committed Jan 17, 2024
1 parent 62b68cc commit d3a8618
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ Class Procs:
return TRUE
if(user.lying || user.stat)
return TRUE
if (!istype(usr, /mob/living/carbon/human || istype(usr, /mob/living/silicon)))
to_chat(usr, "<span class='warning'>You don't have the dexterity to do this!</span>")
if (!(istype(usr, /mob/living/carbon/human) || istype(usr, /mob/living/silicon)))
to_chat(usr, FEEDBACK_YOU_LACK_DEXTERITY)
return TRUE
/*
//distance checks are made by atom/proc/DblClick
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/stacks/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

if ( ! (istype(user, /mob/living/carbon/human) || \
istype(user, /mob/living/silicon)) )
to_chat(user, SPAN("warning", "You don't have the dexterity to do this!"))
to_chat(user, FEEDBACK_YOU_LACK_DEXTERITY)
return 1

if (istype(M, /mob/living/carbon/human))
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/weaponry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
return

if(!user.IsAdvancedToolUser())
to_chat(user, SPAN_WARNING("You don't have the dexterity to do this!</span>"))
to_chat(user, FEEDBACK_YOU_LACK_DEXTERITY)
return

if((MUTATION_CLUMSY in user.mutations) && prob(50))
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/rock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/obj/structure/rock/attackby(obj/item/I, mob/user)
if (isMonkey(user))
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
to_chat(user, FEEDBACK_YOU_LACK_DEXTERITY)
return
if (istype(I, /obj/item/pickaxe/drill))
if(!istype(user.loc, /turf))
Expand Down
2 changes: 1 addition & 1 deletion code/game/turfs/simulated/wall_attacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
/turf/simulated/wall/attackby(obj/item/W as obj, mob/user as mob)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if (!user.IsAdvancedToolUser())
to_chat(user, SPAN("warning","You don't have the dexterity to do this!"))
to_chat(user, SPAN("warning", FEEDBACK_YOU_LACK_DEXTERITY))
return

//get the user's location
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/machines/minting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
return

if(!ishuman(user) && !issilicon(user))
to_chat(usr, SPAN_WARNING("You don't have the dexterity to do this!"))
to_chat(usr, FEEDBACK_YOU_LACK_DEXTERITY)
return

add_fingerprint(user)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/machines/unloading.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
return

if(!ishuman(user) && !issilicon(user))
to_chat(usr, SPAN_WARNING("You don't have the dexterity to do this!"))
to_chat(usr, FEEDBACK_YOU_LACK_DEXTERITY)
return

toggle()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/mine_turfs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ var/list/mining_floors = list()
//Not even going to touch this pile of spaghetti
/turf/simulated/mineral/attackby(obj/item/W, mob/user)
if(!user.IsAdvancedToolUser())
to_chat(usr, "<span class='warning'>You don't have the dexterity to do this!</span>")
to_chat(usr, FEEDBACK_YOU_LACK_DEXTERITY)
return

if(istype(W, /obj/item/device/core_sampler))
Expand Down

0 comments on commit d3a8618

Please sign in to comment.