OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Nord on October 23, 2024, 02:39:06 pm
-
I has a problem: if a unit uses the skill related to melee weapons, there is no way to check only items in hands. So "improved bashing superduper swing" can be not with the sword in hand, but with a knife in pbackpack. Only way is to define each item, available for this skill. But it can be a full list of all melee weapons.
So i propose to add "compatibleWeaponTypes" similar to "compatibleWeapons", to define "Melee" or whatever needed.
Thanks.
-
I has a problem: if a unit uses the skill related to melee weapons, there is no way to check only items in hands.
The documentation says there is an attribute just for that... does it not work?
`checkHandsOnly: true`
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Soldier_Skillls
So i propose to add "compatibleWeaponTypes" similar to "compatibleWeapons", to define "Melee" or whatever needed.
Isn't this also already available? Or does it not work?
`battleType: 3`
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Soldier_Skillls
-
When "battleType" used, "checkHandsOnly" does not apply.
-
ok, I will check
-
ok, I will check
Happy 9000th post! 8)
-
When "battleType" used, "checkHandsOnly" does not apply.
Yup, it's not checked.
There's even a note in the source code that it is not checked: https://github.com/MeridianOXC/OpenXcom/blob/oxce-plus/src/Battlescape/SkillMenuState.cpp#L309
@memmaker (https://openxcom.org/forum/index.php?action=profile;u=7728): is this intentional/desired or can I change it?
-
I only remember this vaguely, but I am pretty sure you'd want to be able to query more precisely. So I'd say you can just change it.
-
When "battleType" used, "checkHandsOnly" does not apply.
Added `checkHandsOnly2`, which applies for `battleType`.
Default false (for backwards-compatibility).
Example:
skills:
- type: STR_SLASH
costUse:
time: 5
targetMode: 10
# compatibleWeapons: [STR_STUN_ROD]
battleType: 3
checkHandsOnly2: true # default false
soldiers:
- type: STR_SOLDIER
skillIconSprite: 1
skills:
- STR_SLASH
PS: `battleType` can now also search within special weapons (not only inventory), same as `compatibleWeapons`... a small backwards-incompatibility, which hopefully doesn't bother anyone... if yes, shout
-
Thanks, that way is even better.