Sell equipment oxp...

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

Post Reply
Belgarath
Above Average
Above Average
Posts: 27
Joined: Sun Sep 24, 2006 3:01 pm

Sell equipment oxp...

Post by Belgarath »

I just installed the Sell Equipment OXP.
According to the readme I should be getting about 60% of the original value for the modules when I sell them, however all sellable equipment gives me just 10 credits...

I noticed the following in the script.js of the Sell Equipment OXP:

Code: Select all

player.ship.removeEquipment(this.equipment_key[i] + "_REMOVAL")
			player.credits += (EquipmentInfo.infoForKey(this.equipment_key[i]).price * 0.1 * 0.6)
			break
		}
	}
}
Seems to me selling equipement gives me 60% x 10% = just 6% of the original value back.
Or am I worng here?

thnx
BBC Micro Elite "Deadly"-rated
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

EquipmentInfo price entries are in tenths of credits, the fundamental unit of currency in Oolite.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

I think that the 10 credits you see displayed is the handling / brokerage / whatever fee it costs you to actually sell specific equipment. This works in a similar way to 'Unmount and sell all pylon mounted weapons' in vanilla Oolite.
Try that one with a fresh Jameson to see what I mean: it costs you 20 credits to sell missiles, the value of the 3 unused missiles comes to 90 credits, so you're 70 credits better off if you sell the missiles. As if by magic! :P
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Belgarath
Above Average
Above Average
Posts: 27
Joined: Sun Sep 24, 2006 3:01 pm

Post by Belgarath »

DOH!

What mistaka to maka...

Thanks for clearing that up...
I found that when I sell my equipement before buying a different ship, I have more credits.
BBC Micro Elite "Deadly"-rated
Post Reply