[APPROVED] Bananas.js fix

Want to contribute to the Ultima Offline eXperiment? Submit your JS/DFN/Code fixes and/or other UOX3 improvements here!
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Bananas.js fix

Post by dragon slayer »

In the bananas.js there is a small problem.

if you look at this line.

Code: Select all

iUsed.SetTag("BananaCounter", maxBananas); 	// Add 5 bananas to the tree initially
You notic it says maxBananas

well if you look at top of the script it says

Code: Select all

var maxResource = 5;
I changed

Code: Select all

var maxResource = 5;
to

Code: Select all

var maxBananas = 5; //maximum amount of resources on a given item
I hope thios fix makes it in next version :)
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Thanks. Will be in the next version!
-= Ho Eyo He Hum =-
Post Reply