Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to remove advanced chip requirement #1

Open
quonic opened this issue Aug 30, 2021 · 1 comment
Open

Way to remove advanced chip requirement #1

quonic opened this issue Aug 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@quonic
Copy link

quonic commented Aug 30, 2021

Found this: Square Root (Basic Chip)

    j=zi/55+3
    j+=zi/j
    j+=zi/j*4
    j=zi/j+j/16
    z=j+zi/j/4

It only increases the line count to 8 and I don't know if it would affect accuracy.

Example compile yolol:

a=61195.125 b=67450.125 c=0 d=b e=a if:skyscan!=0thengoto3end
:location="Inactive" :chipfield1=0 :chipfield2=0 :chipfield3=0
if:skyscan!=1thengoto1end f=:nss g=:wss h=:gss
i=1000000-f j=1000000-g k=1000000-h l=(k*k-j*j+a*a)/(2*a)
m=(k*k-i*i+c*c+d*d-2*c*l)/(2*d) n=k*k-l*l-m*m ifn<0thenn*=-1end
o=n/55+3 o+=n/o o+=n/o*4 o=n/o+o/16 p=o+n/o/4
:chipfield3=p :chipfield2=m :chipfield1=l
:location="\nX:"+l+"\nY:"+m+"\nZ:"+p goto3

Really, this is all moot as advanced chips are so cheap to make and/or purchase on the AH.

@tgf-0
Copy link
Owner

tgf-0 commented Aug 30, 2021

Nice, thank you for adding this! Worth including in the next release at least, I'll bundle it in when I get around to it. You're right though, advanced chips are easily bought for around 500.00 units atm, so it's probably not a huge deal either way.
Thanks! :)

@tgf-0 tgf-0 self-assigned this Aug 30, 2021
@tgf-0 tgf-0 added the enhancement New feature or request label Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants