Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

this.equipmentRemoved dont work as expected when removing or replacing laser at least

For test results, bug reports, announcements of new builds etc.

Moderators: another_commander, winston, Getafix

Post Reply
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

this.equipmentRemoved dont work as expected when removing or replacing laser at least

Post by Frame »

in 1.90

ship world event handler

Code: Select all

this.equipmentRemoved = function(key)
{
log("key is:"+key)
}
They Key do not return the key expected when replacing or removing a laser. Instead, it returns the new Laser installed with the _DAMAGED attached. It even does this when you remove a laser completely and returns EQ_WEAPON_NONE_DAMAGED

if you try to replace the laser with a laser of the same kind, then it still triggers a EQ_WEAPON_´LASER´_DAMAGED or even a EQ_WEAPON_NONE_DAMAGED when you try to remove a laser from an empty slot.

Additionally it does not trigger at all when you remove a passenger berth or sell all pylon mounted equipment.
Bounty Scanner
Number 935
Post Reply