summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-07-23 01:32:38 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-07-23 01:32:38 -0400
commit41f62a13bc677f18692379c5be8eb8e258211556 (patch)
tree2bad2aafbb833dff66502a92ed0c4ff7614ee758
parentc616cbf2cdb86695eec266abde06fbfdfcbbc3a4 (diff)
Highlight shell
-rw-r--r--Automatically-reuse-Repel.md1
-rw-r--r--Remove-Pokémon-sprite-animations.md28
2 files changed, 14 insertions, 15 deletions
diff --git a/Automatically-reuse-Repel.md b/Automatically-reuse-Repel.md
index ccc5b8a..5915903 100644
--- a/Automatically-reuse-Repel.md
+++ b/Automatically-reuse-Repel.md
@@ -63,7 +63,6 @@ The file that defines item effects is, predictably, [engine/items/item_effects.a
+ ld [wRepelType], a
jp UseItemText
-
TextJump_RepelUsedEarlierIsStillInEffect:
; The REPEL used earlier is still in effect.
text_jump Text_RepelUsedEarlierIsStillInEffect
diff --git a/Remove-Pokémon-sprite-animations.md b/Remove-Pokémon-sprite-animations.md
index d4bccd6..f9c788d 100644
--- a/Remove-Pokémon-sprite-animations.md
+++ b/Remove-Pokémon-sprite-animations.md
@@ -537,20 +537,20 @@ Another way is to crop the sprites *after* they've been converted from .png to .
Create **tools/trim_animation.sh**:
-```diff
-+#!/bin/sh
-+# Usage: trim_animation.sh front.animated.2bpp front.dimensions
-+
-+case $(cat $2) in
-+ U) bytes=400;; # $55="U"; 5*5*16=400
-+ f) bytes=576;; # $66="f"; 6*6*16=576
-+ w) bytes=784;; # $77="w"; 7*7*16=784
-+ *) bytes=-0;; # invalid size; don't trim
-+esac
-+
-+temp_file=$(mktemp)
-+head -c $bytes $1 > $temp_file
-+mv $temp_file $1
+```sh
+#!/bin/sh
+# Usage: trim_animation.sh front.animated.2bpp front.dimensions
+
+case $(cat $2) in
+ U) bytes=400;; # $55="U"; 5*5*16=400
+ f) bytes=576;; # $66="f"; 6*6*16=576
+ w) bytes=784;; # $77="w"; 7*7*16=784
+ *) bytes=-0;; # invalid size; don't trim
+esac
+
+temp_file=$(mktemp)
+head -c $bytes $1 > $temp_file
+mv $temp_file $1
```
Then edit the [Makefile](../blob/master/Makefile):