Skip to content

Commit

Permalink
Shift some donor jobs flags (#1732)
Browse files Browse the repository at this point in the history
## Что этот PR делает
Сдвигает оставшиеся джобки, которые я забыл сдвинуть. Теперь уже с
миграцией.

```sql
-- Сдвигать только указанные биты
UPDATE characters
SET 
    job_engsec_low = (job_engsec_low & ~(1 << 17 | 1 << 18 | 1 << 19 | 1 << 20 | 1 << 21 | 1 << 22)) -- Очистить указанные биты
                     | ((job_engsec_low & (1 << 17 | 1 << 18 | 1 << 19 | 1 << 20 | 1 << 21 | 1 << 22)) << 1), -- Сдвинуть их на 1 бит
    job_engsec_med = (job_engsec_med & ~(1 << 17 | 1 << 18 | 1 << 19 | 1 << 20 | 1 << 21 | 1 << 22))
                     | ((job_engsec_med & (1 << 17 | 1 << 18 | 1 << 19 | 1 << 20 | 1 << 21 | 1 << 22)) << 1),
    job_engsec_high = (job_engsec_high & ~(1 << 17 | 1 << 18 | 1 << 19 | 1 << 20 | 1 << 21 | 1 << 22))
                      | ((job_engsec_high & (1 << 17 | 1 << 18 | 1 << 19 | 1 << 20 | 1 << 21 | 1 << 22)) << 1);
```

## Summary by Sourcery

Chores:
- Update job bit flags and include a database migration.
  • Loading branch information
m-dzianishchyts authored Jan 5, 2025
1 parent eb1407d commit dacc106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modular_ss220/_defines220/code/job_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
#define JOB_CADET (1<<17)
//#define JOB_PILOT (1<<18)

#define JOB_REPRESENTATIVE_TSF (1<<17)
#define JOB_REPRESENTATIVE_USSP (1<<18)
#define JOB_DEALER (1<<19)
#define JOB_VIP_GUEST (1<<20)
#define JOB_BANKER (1<<21)
#define JOB_SECURITY_CLOWN (1<<22)
#define JOB_REPRESENTATIVE_TSF (1<<18)
#define JOB_REPRESENTATIVE_USSP (1<<19)
#define JOB_DEALER (1<<20)
#define JOB_VIP_GUEST (1<<21)
#define JOB_BANKER (1<<22)
#define JOB_SECURITY_CLOWN (1<<23)

#define JOBCAT_LAST_ENGSEC (1<<23)

Expand Down

0 comments on commit dacc106

Please sign in to comment.