mirror of
https://git.squeakyrat.moe/petratc/
synced 2026-11-05 02:45:43 +01:00
added more ratarts
This commit is contained in:
1 parent
7b460110b1
commit
290ea5659f
2 files changed
+11
-5
No files matched your search
@@ -15,8 +15,13 @@
|
|||||||
#define ratsave "%s/.local/share/rat/rat.txt"
|
#define ratsave "%s/.local/share/rat/rat.txt"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char ratart[] =
|
char *ratart[] = {
|
||||||
" .---.\n (\\./) \\.......-\n >' '< (__.'\"\"\"\"\"\"\n \" ` \" \"_";
|
" .---.\n (\\./) \\.......-\n >' '< (__.'\"\"\"\"\"\"\n \" ` \" \"_",
|
||||||
|
" .---.\n-......./ (\\./)\n \"\"\"\"\"\"'.__) >' '<\n _\" \" ` \"",
|
||||||
|
" .---.\n (\\./) \\.......-\n >= =< (__.'\"\"\"\"\"\"\n \" ` \" \"_",
|
||||||
|
" .---.\n (\\./) \\.......-\n >0 0< (__.'\"\"\"\"\"\"\n \" ` \" \"_",
|
||||||
|
" .---.\n (\\./) \\.......-\n >^ ^< (__.'\"\"\"\"\"\"\n \" ` \" \"_",
|
||||||
|
};
|
||||||
|
|
||||||
char *messages[] = {
|
char *messages[] = {
|
||||||
"squeak!",
|
"squeak!",
|
||||||
@@ -93,10 +98,11 @@ void printrat(WINDOW *win){
|
|||||||
|
|
||||||
werase(win);
|
werase(win);
|
||||||
box(win, 0, 0);
|
box(win, 0, 0);
|
||||||
|
|
||||||
|
int ratties = (sizeof(ratart)/sizeof(ratart[0]));
|
||||||
int row = 1;
|
int row = 1;
|
||||||
char artcopy[256];
|
char artcopy[256];
|
||||||
strncpy(artcopy, ratart, sizeof(artcopy));
|
strncpy(artcopy, ratart[rand() % ratties], sizeof(artcopy));
|
||||||
artcopy[sizeof(artcopy)-1] = '\0';
|
artcopy[sizeof(artcopy)-1] = '\0';
|
||||||
|
|
||||||
char *line = strtok(artcopy, "\n");
|
char *line = strtok(artcopy, "\n");
|
||||||
|
|||||||
Reference in new issue
Block a user