Advertisement
Guest User

Untitled

a guest
Sep 27th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. 2:11 AM] Patrick: The game has a weird way of determining whether a gf is at home:
  2. [2:11 AM] Patrick:
  3. // get current hour (ignore minutes)
  4. 3@ = current_time_hours, 4@ = current_time_minutes ;
  5. 4@ = 3@ ;
  6.  
  7. // """round down""" to the neares even number
  8. 4@ /= 2 ;
  9. 4@ *= 2 ;
  10.  
  11. // check whether she is at home
  12. if( 08B6: test $383($GIRLFRIEND,6i) bit 4@ ) {
  13.  
  14.  
  15. Katies has these bits set:
  16. 0 2 4 6 8 10
  17. So she is unavailable from 0:00 to 11:59
  18. [2:11 AM] Patrick: It is so weird, I first thought I was stupid and so I got a log of it happening.
  19. [2:12 AM] Patrick:
  20. 00146625&0: [00BF] GET_TIME_OF_DAY -> 2 12
  21. 00146633&0: [0085] l4(12) = l3(2)
  22. 00146641&0: [0016] l4(2) /= 2
  23. 00146648&0: [0012] l4(1) *= 2
  24. 00146655&0: [00D6] IF 0
  25. 00146659&0: [08B6] IS_GLOBAL_VAR_BIT_SET_LVAR 1365 2 // TRUE
  26. 00146671&1: [004D] GOTO_IF_FALSE 146694
  27. 00146678&1: [0006] l3(2) = -1 // not at home
  28. 00146685&1: [0051] RETURN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement