Hello,

I'm trying to make gold weightless.

I have changed this:

Code:
public override double DefaultWeight 
{ 
	get 
{ 
	return (Core.ML ? (0.02 / 3) : 0.02); }

to this:

Code:
  public override double DefaultWeight
  {
  get
  {
  return (Core.ML ? (0.00 / 0) : 0.00);
  }
  }[code]

The issue is that I'm no longer adding weight, according to character status, but my character still is unable to move and stamina drops to 0 when I try. 


Any other ideas?
 
C#:
return (Core.ML?(0.00/0):0.00);

Just do a flat 'return 0;' as dividing by zero is gonna give you a bad time...

Also try setting 'Weight = 0;' too, DefaultWeight is used as a fall-back value.
 
You cannot divide with Zero value.
Just return 0;

public override double DefaultWeight {
get {
return 0;
}
}
 
Back