screeps / engine

ISC License
134 stars 66 forks source link

Increase creep.say character limit #142

Open KingSupernova31 opened 5 months ago

KingSupernova31 commented 5 months ago

Creep.say is very useful for communicating with other players, for logging what your creeps are doing to yourself for debugging purposes, and for aesthetics. But the 10 character limit is extremely restrictive; you can only log a single word, or two short words. I don't see any reason it needs to be this short; other players can always turn off messages in their visual settings, so there's no downside to allowing players to write longer messages if they want to. It would be extremely simple to change; just replace 10 with 25 in the intent.message.substring(0,10), line of src/processor/intents/creeps/say.js and src/processor/intents/power-creeps/say.js.

(If the speech bubble code can automatically handle multiple lines, I think a longer limit of around 100 characters would be ideal. But if that would require working the speech bubble code to support multiple lines, I don't think it's worth it. I'm hoping a simple 10 > 25 change might be accepted despite this project's relative inactivity because it's so easy to do.)