The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Pickups Alive
pasajero 2 月 23 日 上午 2:16
Fix Penny bug
To fix the penny bug, paste this in "utilities":

local Utilities = {}
Utilities.mod = RegisterMod( 'Pickups Alive', 1 )
Utilities.game = Game()

Utilities.EntityState = {
IDLE = 0,
DASH = 1,
FLY = 2,
WALK = 3
}

function Utilities.getRNG()
if Utilities.game:GetNumPlayers() < 1 then
return RNG()
end
local player = Utilities.game:GetPlayer( 0 )
return player:GetTrinketRNG( Isaac.GetTrinketIdByName( 'Tiny Sack' ) )
end

function Utilities.spawnReward( options, entity, rng )
local subvariant = options.PickupSubvariant or 1
if type( subvariant ) == 'function' then
subvariant = subvariant( rng ) or 1
end

Isaac.Spawn(
EntityType.ENTITY_PICKUP,
options.PickupVariant,
subvariant,
entity.Position,
Vector.Zero,
entity
)
end

return Utilities
最后由 pasajero 编辑于; 2 月 23 日 下午 2:37
< >
正在显示第 1 - 1 条,共 1 条留言
UndoZan 4 月 28 日 下午 2:55 
in what folder?
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50