these are definitely weapons as well#167
Conversation
|
https://github.com/Mikihero/EXILED/blob/02daca40efaccf6974c7d85a7f5c977fa453e210/EXILED/Exiled.API/Extensions/ItemExtensions.cs#L42 |
VALERA771
left a comment
There was a problem hiding this comment.
I wanted to write a joke but I'm too lazy
|
in my opinion we should added IsFirearm and put this one as Obsolete and for Exiled 9 doing this check with all possible Weapon if you guys thinks it's better to do it directly it's your choice |
I guess it could be useful for people who have no idea how to cast but the actual code would be just |
that was actually the only use case of this Propperty (they are more if you look under and above this one) |
not sure what you mean |
I mean that it would be good to have a replacement for what they were using until now so we can tell them what to replace IsWeapon with IsFirearm |
|
makes sense, I can do that later |
VALERA771
left a comment
There was a problem hiding this comment.
I agree with yamato's suggestion. Also change branch to scpsl14 so we can merge your pr
Co-authored-by: Yamato <66829532+louis1706@users.noreply.github.com>
Description
Describe the changes
What is the current behavior?
Item.IsWeapononly checks for firearmsEXILED/EXILED/Exiled.API/Features/Items/Item.cs
Line 160 in 9cd0e45
What is the new behavior? Checks for Micro HID and jailbird as well as firearm
Does this PR introduce a breaking change? Technically yes, although I can't think of a use case where you wouldn't also want to include other weapons instead of just checking if it's a firearm.
Other information: As it technically is breaking, I was considering just making this a method (ideally a different property tho I culdn't think of a good name, hence a method of a similar name)
Types of changes
Submission checklist
Patches (if there are any changes related to Harmony patches)
Other