jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

[suggestion] buy parts for detected incomplete or damaged blocks #159

Open jpcsupplies opened 7 years ago

jpcsupplies commented 7 years ago

@deddokatana (Jason) Has suggested a command that on targeting an incomplete or damaged ship attempts to buy based on available funds or stock the parts necessary to complete or repair that ship.

He has attempted the enh himself here: https://github.com/deddokatana/Economy_mod although he needs some guidance as he is new to modapi.

His last commit (as of writing) is here https://github.com/deddokatana/Economy_mod/tree/d0b5b339907273bb1d6a8c7deac9db43d9b19f81

He is proposing the command /buyneededcomponents although I prefer a shorter command like /buyneeded it is otherwise a good idea it should be added.

adisciple50 commented 7 years ago

currently, ive discovered the shorter and proper way to loop through a grid for blocks and i am refining the "get needed components from block" procedure.

"/buyneeded" does seem descriptive enough, i was aiming for it being a bit self explanatory, but most people type /ehelp for info anyways.

... also, any command i write can be refactored easily anyway, allowing the above command to be changed. im just getting the basic functionality to work at the moment.