mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 01:51:50 +00:00
[MIRROR] Removes final remnants of 'targetted' [MDB IGNORE] (#24927)
* Removes final remnants of 'targetted' (#79626) ## About The Pull Request Finishing what https://github.com/tgstation/tgstation/pull/79513/ started, removes 'targetted' typo from code. Also updates the basic mob guide with the new updated var names. ## Why It's Good For The Game Typos bad. Accurate guides good. ## Changelog 🆑 code: gets rid of the rest of the instances of 'targetted' typo from code /🆑 * Removes final remnants of 'targetted' --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
@@ -30,19 +30,19 @@
|
||||
if(proximity_flag)
|
||||
if(isgun(target))
|
||||
. |= AFTERATTACK_PROCESSED_ITEM
|
||||
var/obj/item/gun/targetted_gun = target
|
||||
var/obj/item/firing_pin/old_pin = targetted_gun.pin
|
||||
var/obj/item/gun/targeted_gun = target
|
||||
var/obj/item/firing_pin/old_pin = targeted_gun.pin
|
||||
if(old_pin?.pin_removable && (force_replace || old_pin.pin_hot_swappable))
|
||||
if(Adjacent(user))
|
||||
user.put_in_hands(old_pin)
|
||||
else
|
||||
old_pin.forceMove(targetted_gun.drop_location())
|
||||
old_pin.forceMove(targeted_gun.drop_location())
|
||||
old_pin.gun_remove(user)
|
||||
|
||||
if(!targetted_gun.pin)
|
||||
if(!targeted_gun.pin)
|
||||
if(!user.temporarilyRemoveItemFromInventory(src))
|
||||
return .
|
||||
if(gun_insert(user, targetted_gun))
|
||||
if(gun_insert(user, targeted_gun))
|
||||
if(old_pin)
|
||||
balloon_alert(user, "swapped firing pin")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user