Advertisement
Guest User

Untitled

a guest
Jan 16th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. VarAction2(
  2.     feature=INDUSTRY_TILE,
  3.     ref_id=243,
  4.     related_scope=False,
  5.     ranges={1: Ref(243)},
  6.     default=CB(1025),
  7.     code='''
  8.        TEMP[129] = (TEMP[128] = cmp(nearby_tile_slope(0), 0) & 1) ^ 1
  9.        TEMP[130] = ((cmp(nearby_tile_slope(0), 16) & 1) * 1 + 1) * TEMP[129]
  10.        TEMP[131] = TEMP[128] * 0 + TEMP[130] + nearby_tile_height(0)
  11.        TEMP[132] = 0 - relative_y & 15 << 4
  12.        TEMP[134] = (TEMP[133] = cmp(nearby_tile_slope((0 - relative_x & 15) + TEMP[132]), 0) & 1) ^ 1
  13.        TEMP[135] = 0 - relative_y & 15 << 4
  14.        TEMP[136] = ((cmp(nearby_tile_slope((0 - relative_x & 15) + TEMP[135]), 16) & 1) * 1 + 1) * TEMP[134]
  15.        TEMP[137] = TEMP[133] * 0 + TEMP[136]
  16.        TEMP[138] = 0 - relative_y & 15 << 4''',
  17. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement