1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
STABLE_TRAINING_TEXTURES =
{
[ RIDING_TRAIN_SPEED ] = "EsoUI/Art/Mounts/ridingSkill_speed.dds" ,
[ RIDING_TRAIN_STAMINA ] = "EsoUI/Art/Mounts/ridingSkill_stamina.dds" ,
[ RIDING_TRAIN_CARRYING_CAPACITY ] = "EsoUI/Art/Mounts/ridingSkill_capacity.dds" ,
}
STABLE_TRAINING_TEXTURES_GAMEPAD =
{
[ RIDING_TRAIN_SPEED ] = "EsoUI/Art/Mounts/Gamepad/gp_ridingSkill_speed.dds" ,
[ RIDING_TRAIN_STAMINA ] = "EsoUI/Art/Mounts/Gamepad/gp_ridingSkill_stamina.dds" ,
[ RIDING_TRAIN_CARRYING_CAPACITY ] = "EsoUI/Art/Mounts/Gamepad/gp_ridingSkill_capacity.dds" ,
}
STABLE_TRAINING_SOUNDS =
{
[ RIDING_TRAIN_SPEED ] = SOUNDS . STABLE_FEED_SPEED ,
[ RIDING_TRAIN_STAMINA ] = SOUNDS . STABLE_FEED_STAMINA ,
[ RIDING_TRAIN_CARRYING_CAPACITY ] = SOUNDS . STABLE_FEED_CARRY ,
}
----------------
--Initialization
----------------
return singleton
end
end
end
end
end
EVENT_MANAGER : RegisterForEvent ( "ZO_Stable_Manager" , EVENT_STABLE_INTERACT_END , function ( eventCode ) self : FireCallbacks ( "StableInteractEnd" ) end )
end
end
end
local inventoryBonus , maxInventoryBonus , staminaBonus , maxStaminaBonus , speedBonus , maxSpeedBonus = GetRidingStats ( )
{
[ RIDING_TRAIN_SPEED ] = { speedBonus , maxSpeedBonus } ,
[ RIDING_TRAIN_STAMINA ] = { staminaBonus , maxStaminaBonus } ,
[ RIDING_TRAIN_CARRYING_CAPACITY ] = { inventoryBonus , maxInventoryBonus } ,
}
self . ridingSkillMaxedOut = ( inventoryBonus == maxInventoryBonus ) and ( staminaBonus == maxStaminaBonus ) and ( speedBonus == maxSpeedBonus )
end
end
local STAT_BONUS_INDEX = 1
local MAX_STAT_BONUS_INDEX = 2
if trainingType then
else
return speed , speedMax , stamina , staminaMax , carry , carryMax
end
end
end
|