Jofairden / EvenMoreModifiers

A mod for Terraria that adds a system for Modifiers that can apply to items giving various bonuses
https://zond.tech/emm/
Other
20 stars 10 forks source link

Add WeaponOut support #39

Closed Jofairden closed 5 years ago

Jofairden commented 5 years ago

Use fk's new version and add support for the effects:

private static bool exampleCustomModifyPreDraw(Player p, Item i, Terraria.DataStructures.DrawData dd)
{
    if (i.modItem == null) return true;

    if (i.rare > 3)
    {
        dd.scale *= i.rare;
        Main.playerDrawData.Add(dd);
        return false;
    }
    return true;
}

public override void Load()
{
    Func<Player, Item, DrawData, bool> WODrawData = exampleCustomModifyPreDraw;
    AddCustomPreDrawMethod(WODrawData);
    //Call("AddCustomPreDrawMethod", WODrawData);
Jofairden commented 5 years ago

This is done in f0e651eb446eb2f1a59f153208f2c89a618a6997 and fix (for better caching) in 844b61c3e3958bbbde27cb8d6782f6a0895e5119 (fixes mounts and whatnot) and fix lightcolor (shaders) in f23ac8828c544bd9d79c69374a316b78a5544364