Explorar el Código

sbird fixt etwas blabla

DragonflySotS hace 7 años
padre
commit
532d184531
Se han modificado 5 ficheros con 43 adiciones y 37 borrados
  1. 0
    12
      makefile
  2. 1
    1
      sots-private
  3. 30
    0
      src/include/battlescreens.h
  4. 0
    23
      src/include/hiddenflags.h
  5. 12
    1
      src/include/script_language.h

+ 0
- 12
makefile Ver fichero

@@ -105,18 +105,6 @@ $(STRINGDIR)/%.s: $(STRINGDIR)/%.txt
105 105
 	@echo -e "\e[93mGenerating strings $<\e[0m"
106 106
 	$(STRAGB) -o $@ -i $< -t string/table.tbl -e 0xFF
107 107
 
108
-$(BLDPATH)/%.o: %.c $(ASSETS) $(PAGB_INCLUDE)/pokeagb/pokeagb.h src/include/script_language.h src/include/hiddenflags.h
109
-	@echo -e "\e[32mCompiling $<\e[0m"
110
-	$(shell mkdir -p $(dir $@))
111
-	$(CC) $(CFLAGS) -c $< -o $@
112
-
113
-$(BLDPATH)/%.o: %.s $(PAGB_INCLUDE)/pokeagb/pokeagb.h src/include/script_language.h src/include/hiddenflags.h
114
-	@echo -e "\e[32mAssembling $<\e[0m"
115
-	$(shell mkdir -p $(dir $@))
116
-	$(PREPROC) $< $(CHARMAP) > $*.i
117
-	$(CC) $(CFLAGS) -c -x assembler-with-cpp $*.i -o $@
118
-	@rm -f $*.i
119
-
120 108
 $(MAPTS)/%.s: $(MAPTS)/%.png
121 109
 	@echo -e "\e[34mProcessing image (tileset) $<\e[0m"
122 110
 	$(GRIT) $< -o $@ -fts -gzl -pz! -pu16 -gB4 -m! -mR!

+ 1
- 1
sots-private

@@ -1 +1 @@
1
-Subproject commit 240a75202d08438866fc9dbe9b9810079e6f987f
1
+Subproject commit 39830f690d3735aa5b7f00b72f015732e2bd3f32

+ 30
- 0
src/include/battlescreens.h Ver fichero

@@ -0,0 +1,30 @@
1
+#ifndef BATTLESCREEN_IDS_H_
2
+#define  BATTLESCREEN_IDS_H__IDS_H_
3
+
4
+#define BATTLESCREEN_GRASS , 0x0
5
+#define BATTLESCREEN_STRAND , 0x1
6
+#define BATTLESCREEN_UNTERWASSER , 0x2
7
+#define BATTLESCREEN_MEER , 0x3
8
+#define BATTLESCREEN_SEE , 0x4
9
+#define BATTLESCREEN_GEBIRGE, 0x5
10
+#define BATTLESCREEN_HOEHLE_1 , 0x6
11
+#define BATTLESCREEN_INNEN , 0x7
12
+#define BATTLESCREEN_DORF , 0x8
13
+#define BATTLESCREEN_WALD1 , 0x9
14
+#define BATTLESCREEN_STADT , 0xA
15
+#define BATTLESCREEN_SCHNEESTADT , 0xB
16
+#define BATTLESCREEN_SCHNEEDORF , 0xC
17
+#define BATTLESCREEN_SCHNEESEE , 0xD
18
+#define BATTLESCREEN_WUESTE , 0xE
19
+#define BATTLESCREEN_WUESTENSEE , 0xF
20
+#define BATTLESCREEN_BRUECKE , 0x10
21
+#define BATTLESCREEN_HIMMEL , 0x11
22
+#define BATTLESCREEN_WALD2 , 0x12
23
+#define BATTLESCREEN_WASSERHOEHLE , 0x13
24
+#define BATTLESCREEN_SANDHOEHLE , 0x14
25
+#define BATTLESCREEN_EISHOEHÖE , 0x15
26
+#define BATTLESCREEN_KRISTALLHOEHLE , 0x16
27
+#define BATTLESCREEN_FEUERHOEHLE , 0x17
28
+#define BATTLESCREEN_WASSERHOEHLE , 0x18
29
+
30
+#endif /* MUG_IDS_H */

+ 0
- 23
src/include/hiddenflags.h Ver fichero

@@ -1,23 +0,0 @@
1
-#include <script_language.h>
2
-
3
-.macro sethiddenflags
4
-setflag 0x501
5
-setflag 0x507
6
-setflag 0x509
7
-setflag 0x50E
8
-setflag 0x511
9
-setflag 0x512
10
-setflag 0x513
11
-setflag 0x516
12
-setflag 0x51B
13
-setflag 0x51C
14
-setflag 0x51F
15
-setflag 0x52F
16
-setflag 0x531
17
-setflag 0x532
18
-setflag 0x535
19
-setflag 0x536
20
-setflag 0x537
21
-setflag 0x53B
22
-setflag 0x53C
23
-.endm

+ 12
- 1
src/include/script_language.h Ver fichero

@@ -3,7 +3,6 @@
3 3
 
4 4
 #include <config.h>
5 5
 #include <applymovements.h>
6
-#include <hiddenflags.h>
7 6
 #include <mugssprites.h>
8 7
 
9 8
 @@ Costum Specials
@@ -30,6 +29,14 @@
30 29
 .equ FLAG_ORDEN_7, 0x826
31 30
 .equ FLAG_ORDEN_8, 0x827
32 31
 
32
+@@ LED NAMES
33
+.equ LED_CARUN_CITY, 0x1
34
+.equ LED_ROUTE_2, 0x2
35
+.equ LED_ROUTE_3, 0x3
36
+.equ LED_URBANIA_CITY, 0x4
37
+.equ LED_ROUTE_5, 0x5
38
+.equ LED_ROUTE_6, 0x6
39
+
33 40
 @@ Flag operands
34 41
 .equ B_T, 0x0
35 42
 .equ B_F, 0x1
@@ -65,6 +72,10 @@ setvar 0x5006 SP_BATCHMAPTILE
65 72
 special 0x68
66 73
 .endm
67 74
 
75
+.macro sethiddenflags
76
+call sethiddenflagsall
77
+.endm
78
+
68 79
 .macro seteffect seteffect_effect_id:req
69 80
 writebytetooffset \seteffect_effect_id 0x02036E28
70 81
 .endm