Download Lua/CharacterEffectCompositeDef/BloodScent.generated.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/Lua/CharacterEffectCompositeDef/BloodScent.generated.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/Lua/CharacterEffectCompositeDef/BloodScent.generated.lua
-
curl -L -o BloodScent.generated.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/Lua/CharacterEffectCompositeDef/BloodScent.generated.lua
1.25 kB
| -- ========== GENERATED BY CharacterEffectCompositeDef Editor DO NOT EDIT MANUALLY! ========== | |
| UndefineClass('BloodScent') | |
| DefineClass.BloodScent = { | |
| __parents = { "Perk" }, | |
| __generated_by_class = "CharacterEffectCompositeDef", | |
| object_class = "Perk", | |
| unit_reactions = { | |
| PlaceObj('UnitReaction', { | |
| Event = "OnCalcCritChance", | |
| Handler = function (self, target, attacker, attack_target, action, weapon, data) | |
| if target == attacker and IsKindOf(weapon, "MeleeWeapon") then | |
| data.guaranteed_crit = true | |
| end | |
| end, | |
| }), | |
| PlaceObj('UnitReaction', { | |
| Event = "OnCalcDamageAndEffects", | |
| Handler = function (self, target, attacker, attack_target, action, weapon, attack_args, hit, data) | |
| if target == attacker and IsKindOf(weapon, "MeleeWeapon") then | |
| data.effects[#data.effects + 1] = "Marked" | |
| end | |
| end, | |
| }), | |
| }, | |
| DisplayName = T(738259813299, --[[CharacterEffectCompositeDef BloodScent DisplayName]] "True Strike"), | |
| Description = T(868553471362, --[[CharacterEffectCompositeDef BloodScent Description]] "Successful <em>Melee Attacks</em> are <GameTerm('Crits')> and apply <GameTerm('Marked')> to the target.\n\n"), | |
| Icon = "UI/Icons/Perks/BloodScent", | |
| Tier = "Gold", | |
| Stat = "Strength", | |
| StatValue = 90, | |
| } | |