TW2002 / mombot

Public version of MomBot script for TradeWars 2002
GNU General Public License v3.0
6 stars 0 forks source link

Possible Corpy Load Issue #26

Closed RogerHuba closed 1 year ago

RogerHuba commented 1 year ago

Got this on bot load.

Type sub-space message [ to send line. Blank line to end transmission] S: [General] {hunt} - S: Logging corp mates automatically - and Siymonand Siymon are S: added.

This was the corpy list

Corp Member Name                   Sector  Fighters Shields Mines  Credits

The Bounty Hunter 13761P 50000 9715 0 0 Siymon 13761 2500 0 0 75T P indicates Trader is on a planet in that sector

stevenruzicka commented 1 year ago

Potential fix pushed up - I don't have time to test it, but I believe the issue was the logic was checking for corpy list being equal to 1 meaning you only have one corpy. However, it counts yourself as well. So I changed the logic to be when the corpy size is equal to 2. Then it adds the and between names. Simply a formatting issue, not a functional one. Just me trying to be fancy I guess heh. But if someone could test it, I'd appreciate it.

RogerHuba commented 1 year ago

Tested and fixed. Closing issue.