Add short nose support for vertical smiles. - annna - Annna the nice friendly b… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 8f01822013c20c7cdf640b08af52d6a9b68e9dc3 | |
parent 90c74446f0fc01e7894dff84cce9418594a0c2bc | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Wed, 1 Jan 2025 08:47:51 +0100 | |
Add short nose support for vertical smiles. | |
Diffstat: | |
M smile | 11 ++++++++--- | |
1 file changed, 8 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/smile b/smile | |
@@ -28,6 +28,7 @@ def main(args): | |
vert_eyes = [":", "8", ";"] | |
vert_moustache = ["{", "#", "B", "3"] | |
vert_nose = ["-"] | |
+ vert_nose1 = ["-", "c", "0", "o"] | |
vert_mouth = [")", "}", "P", "p", "b", "*", ">", "D", "]", "O", "o"] | |
vert_tie = ["x", "X"] | |
vert_body = ["|-<", "|o<", "|O<", "|~<"] | |
@@ -53,9 +54,13 @@ def main(args): | |
if random.randrange(1, 10) > 7: | |
ostr += random.choice(vert_hair) | |
ostr += random.choice(vert_eyes) | |
- nose = random.choice(vert_nose) | |
- for i in range(1, random.randrange(2, 5)): | |
- ostr += nose | |
+ noserandrange = random.randrange(2, 5) | |
+ if noserandrange == 2: | |
+ ostr += random.choice(vert_nose1) | |
+ else: | |
+ nose = random.choice(vert_nose) | |
+ for i in range(1, noserandrange): | |
+ ostr += nose | |
if random.randrange(1, 10) > 8: | |
ostr += random.choice(vert_moustache) | |
ostr += random.choice(vert_mouth) |