39 lines
1.8 KiB
Lua
39 lines
1.8 KiB
Lua
local Lore = RegisterMod( "thecreativelore", 1 );
|
|
|
|
--[[ CHARACTERS ]]
|
|
-- Ariel
|
|
local ARIEL_NAME = "Ariel";
|
|
local ARIEL_TYPE = Isaac.GetPlayerTypeByName(ARIEL_NAME);
|
|
local ARIEL_STATS = {
|
|
MoveSpeedNaturalBonus = 0.10,
|
|
MoveSpeedNaturalMultiplier = 0.9,
|
|
DamageNaturalMultiplier = 0.70,
|
|
ShotSpeedNaturalMultiplier = 0.8,
|
|
MaxFireDelayNaturalMultiplier = 1.0,
|
|
MaxFireDelayNaturalExponent = 0.9,
|
|
TearHeightBonus = 12,
|
|
};
|
|
|
|
|
|
--[[ Stats ]]
|
|
function Lore:EvaluateCache( player, cacheFlag )
|
|
if player:GetPlayerType() = ARIEL_TYPE then
|
|
--[[ if cacheFlag == CacheFlag.CACHE_SPEED then
|
|
player.MoveSpeed = player.MoveSpeed * ARIEL_STATS.MoveSpeedNaturalMultiplier + ARIEL_STATS.MoveSpeedNaturalBonus;
|
|
elseif cacheFlag == CacheFlag.CACHE_SHOTSPEED then
|
|
player.ShotSpeed = player.ShotSpeed * ARIEL_STATS.ShotSpeedNaturalMultiplier;
|
|
elseif cacheFlag == CacheFlag.CACHE_DAMAGE then
|
|
player.Damage = player.Damage * ARIEL_STATS.DamageNaturalMultiplier;
|
|
elseif cacheFlag == CacheFlag.CACHE_FIREDELAY then
|
|
player.MaxFireDelay = math.floor( math.max( 1, player.MaxFireDelay * ARIEL_STATS.MaxFireDelayNaturalMultiplier ) ^ ARIEL_STATS.MaxFireDelayNaturalExponent );
|
|
elseif cacheFlag == CacheFlag.CACHE_RANGE then
|
|
player.TearHeight = player.TearHeight + ARIEL_STATS.TearHeightBonus;
|
|
elseif cacheFlag == CacheFlag.CACHE_TEARCOLOR then
|
|
--player.TearColor = GAPPI_COLOR;
|
|
--Player.LaserColor = GAPPI_COLOR;
|
|
end]]
|
|
player.CanFly = true
|
|
end
|
|
end
|
|
Lore:AddCallback( ModCallbacks.MC_EVALUATE_CACHE, Lore.EvaluateCache );
|