I need help with coding please

TmasterTerrarian

Steampunker
so im coding an accessory that's supossed to increase damage and decrease speed, can anyone help it keeps giving me errors like

" 'Player' does not contain a definition for 'statDamage' and no accessible extension method 'statDamage' accepting a first argument of type 'Player' could be found (are you missing a using directive or an assembly reference?) "

im so confused!!
 
Here's how it should be done:
C#:
public override void UpdateAccessory(Player player, bool hideVisual)
        {

            player.allDamage *= 1.05f; //Increased all damage by 5%
            player.moveSpeed *= 0.85f; //Decreases movement speed by 15%
          
        }
Also make sure you've added "item.accessory = true;" in the set defaults.
 
Back
Top Bottom