Scripted asteroids with any primary role now create boulders when destroyed, as long as they contain the role asteroid in their roleset. Scripted boulders with any primary role create splinters when destroyed, as long as they have the role boulder in their roleset.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2016 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2009-01-29 17:31:22 +00:00
parent 8275ac7cc0
commit 40b74059c2

View File

@ -4415,7 +4415,7 @@ NSComparisonResult planetSort(id i1, id i2, void* context)
}
// Throw out rocks and alloys to be scooped up
if ([self hasPrimaryRole:@"asteroid"])
if ([self hasRole:@"asteroid"])
{
if (!noRocks && (being_mined || randf() < 0.20))
{
@ -4451,7 +4451,7 @@ NSComparisonResult planetSort(id i1, id i2, void* context)
return; // don't do anything more
}
if ([self hasPrimaryRole:@"boulder"])
if ([self hasRole:@"boulder"])
{
if ((being_mined)||(ranrot_rand() % 100 < 20))
{