Added a check to let the player know that they're fucking up

This commit is contained in:
Pao
2023-02-03 14:47:56 +01:00
parent d8805cc6e2
commit dfae5b6aa3

View File

@@ -154,6 +154,20 @@ function ISEquipWeaponAction:perform()
end
-- Check if it's a prosthesis and let the player know that they're fucking things up
if self.item then
local item_name = self.item:getFullType()
for _, prost_v in ipairs(GetProsthesisList()) do
local prosthesis_name = string.match(item_name, prost_v)
if prosthesis_name then
self.character:Say("This isn't the right way to equip this...")
end
end
end
end