uome
Bug Hunter
[COMPLETE] Various fishing things
I've decided to create a new thread to put all the fishing things together rather than updating 3 seperate small patches for svn 329.
Included is:
green big fish
white pearls to spawn
trophies to display fish weight and fisher
This will invalidate these threads:
http://www.uodemise.com/forum/showthread.php?t=117162
http://www.uodemise.com/forum/showthread.php?t=116814
http://www.uodemise.com/forum/showthread.php?t=115843
Code:
I've decided to create a new thread to put all the fishing things together rather than updating 3 seperate small patches for svn 329.
Included is:
green big fish
white pearls to spawn
trophies to display fish weight and fisher
This will invalidate these threads:
http://www.uodemise.com/forum/showthread.php?t=117162
http://www.uodemise.com/forum/showthread.php?t=116814
http://www.uodemise.com/forum/showthread.php?t=115843
Code:
Code:
Index: Engines/Harvest/Fishing.cs
===================================================================
--- Engines/Harvest/Fishing.cs (revision 329)
+++ Engines/Harvest/Fishing.cs (working copy)
@@ -90,7 +90,16 @@
fish.Resources = res;
fish.Veins = veins;
-
+
+ if ( Core.ML )
+ {
+ fish.BonusResources = new BonusHarvestResource[]
+ {
+ new BonusHarvestResource( 0, 99.4, null, null ), //set to same chance as mining ml gems
+ new BonusHarvestResource( 80.0, .6, 1072597, typeof( WhitePearl ) )
+ };
+ }
+
m_Definition = fish;
Definitions.Add( fish );
#endregion
@@ -552,4 +561,4 @@
0x74B5, 0x75D5
};
}
-}
\ No newline at end of file
+}
Index: Items/Resources/Fishing/BigFish.cs
===================================================================
--- Items/Resources/Fishing/BigFish.cs (revision 329)
+++ Items/Resources/Fishing/BigFish.cs (working copy)
@@ -26,7 +26,7 @@
public BigFish() : base( 0x09CC )
{
Weight = Utility.RandomMinMax( 3, 200 ); //TODO: Find correct formula. max on OSI currently 200, OSI dev says it's not 200 as max, and ~ 1/1,000,000 chance to get highest
- Hue = 0x847;
+ Hue = Utility.RandomBool() ? 0x847 : 0x58C;
}
public override void GetProperties( ObjectPropertyList list )
@@ -76,4 +76,4 @@
}
}
}
-}
\ No newline at end of file
+}
Index: Items/Skill Items/Carpenter Items/TaxidermyKit.cs
===================================================================
--- Items/Skill Items/Carpenter Items/TaxidermyKit.cs (revision 329)
+++ Items/Skill Items/Carpenter Items/TaxidermyKit.cs (working copy)
@@ -146,6 +146,8 @@
public class TrophyAddon : Item, IAddon
{
+ public override bool ForceShowProperties{ get{ return ObjectPropertyList.Enabled; } }
+
private int m_WestID;
private int m_NorthID;
private int m_DeedNumber;
@@ -459,4 +461,4 @@
}
}
}
-}
\ No newline at end of file
+}