If you try to run player.ship.hasEquipment(string: name) with any laser or missile, it will always return a false result, regardless of whether one is actually presently.
There could be a few OXPs that could make use of such a test.
On a related note, player.ship.removeEquipment(string: name) does not work with missiles either.
Testing for the presence of missile and lasers does not work
Moderators: winston, another_commander, Getafix
Testing for the presence of missile and lasers does not work
Dream as if you'll live forever
Live as if you'll die tomorrow
Live as if you'll die tomorrow
Thank you, Ahruman. I will check this out and let you know if everything is working as intended.
EDIT: requires_equipment and incompatible_with_equipment are both working. Yet to test hasEquipment and removeEquipment().
EDIT2: hasEquipment() works.
EDIT: requires_equipment and incompatible_with_equipment are both working. Yet to test hasEquipment and removeEquipment().
EDIT2: hasEquipment() works.
Dream as if you'll live forever
Live as if you'll die tomorrow
Live as if you'll die tomorrow