removed debug and easter egg
This commit is contained in:
1 parent
180b2285f9
commit
8eba0b9b8a
2 files changed
-26
No files matched your search
@@ -18,10 +18,6 @@ __config() -> {
|
||||
'cuboid <center> <radius> <height> <orientation> <block> <hollow> replace <replacement>'->_(c,r,h,o,b,ho,rp)->draw('draw_prism', [c,r,h,o,b,ho,rp,true]),
|
||||
'cylinder <center> <radius> <height> <orientation> <block> <hollow>'->_(c,r,h,o,b,ho)->draw('draw_prism',[c,r,h,p,o,b,ho,null, false]),
|
||||
'cylinder <center> <radius> <height> <orientation> <block> <hollow> replace <replacement>'->_(c,r,h,o,b,ho,rp)->draw('draw_prism', [c,r,h,o,b,ho,rp,false]),
|
||||
if(system_info('server_dev_environment')||system_info('world_carpet_rules'):'superSecretSetting',
|
||||
'debug <bool>'->_(bool)->global_debug=bool,
|
||||
''->_()->''
|
||||
)
|
||||
},
|
||||
'arguments'->{
|
||||
'center'->{'type'->'pos', 'loaded'->'true'},
|
||||
@@ -36,7 +32,6 @@ __config() -> {
|
||||
'scope'->'global'
|
||||
};
|
||||
|
||||
global_debug=false;
|
||||
|
||||
//"Boilerplate" code
|
||||
|
||||
@@ -64,7 +59,6 @@ affected(player) -> (
|
||||
affected
|
||||
);
|
||||
|
||||
length_sq(vec) -> reduce(vec, _a + _*_, 0);
|
||||
|
||||
//Drawing commands
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
draw_sphere(args)->(
|
||||
if(global_debug, start_time=unix_time());
|
||||
|
||||
[centre, radius, block, replacement, hollow] = args;
|
||||
|
||||
@@ -21,14 +20,10 @@ draw_sphere(args)->(
|
||||
)
|
||||
);
|
||||
|
||||
if(global_debug,
|
||||
print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
|
||||
);
|
||||
return(global_positions)
|
||||
);
|
||||
|
||||
draw_diamond(args)->(
|
||||
if(global_debug, start_time=unix_time());
|
||||
|
||||
[pos, radius, block, replacement] = args;
|
||||
|
||||
@@ -44,14 +39,10 @@ draw_diamond(args)->(
|
||||
)
|
||||
);
|
||||
|
||||
if(global_debug,
|
||||
print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
|
||||
);
|
||||
return(global_positions)
|
||||
);
|
||||
|
||||
draw_filled_diamond(args)->(
|
||||
if(global_debug, start_time=unix_time());
|
||||
|
||||
[pos, radius, block, replacement] = args;
|
||||
|
||||
@@ -59,14 +50,10 @@ draw_filled_diamond(args)->(
|
||||
set_block(_x,_y,_z,block,replacement)
|
||||
);
|
||||
|
||||
if(global_debug,
|
||||
print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
|
||||
);
|
||||
return(global_positions)
|
||||
);
|
||||
|
||||
draw_pyramid(args)->(
|
||||
if(global_debug, start_time=unix_time());
|
||||
|
||||
[pos, radius, height, pointing, orientation, block, fill_type, replacement, is_square] = args;
|
||||
|
||||
@@ -77,14 +64,10 @@ draw_pyramid(args)->(
|
||||
fill_flat(pos, _, r, is_square, orientation, block, if((pointup&&_==0)||(!pointup && _==height-1),false,hollow),replacement)//Always close bottom off
|
||||
);
|
||||
|
||||
if(global_debug,
|
||||
print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
|
||||
);
|
||||
return(global_positions)
|
||||
);
|
||||
|
||||
draw_prism(args)->(
|
||||
if(global_debug, start_time=unix_time());
|
||||
|
||||
[pos, rad, height, orientation, block, fill_type, replacement, is_square]=args;
|
||||
|
||||
@@ -95,9 +78,6 @@ draw_prism(args)->(
|
||||
fill_flat(pos, _, radius, is_square, orientation, block, if(_==0 || _==height-1,false,hollow), replacement)//Always close ends off
|
||||
);
|
||||
|
||||
if(global_debug,
|
||||
print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
|
||||
);
|
||||
return(global_positions)
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user