ularn-commits Mailing List for Ularn
Brought to you by:
bress
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
|
From: <br...@us...> - 2011-10-20 02:40:22
|
Revision: 34
http://ularn.svn.sourceforge.net/ularn/?rev=34&view=rev
Author: bress
Date: 2011-10-20 02:40:16 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
Add a missing zlib check
Modified Paths:
--------------
ularn/trunk/configure.ac
Modified: ularn/trunk/configure.ac
===================================================================
--- ularn/trunk/configure.ac 2011-10-20 02:01:33 UTC (rev 33)
+++ ularn/trunk/configure.ac 2011-10-20 02:40:16 UTC (rev 34)
@@ -12,6 +12,8 @@
AC_PROG_LN_S
AC_PROG_MAKE_SET
+AC_CHECK_LIB(z, compress)
+
dnl Search for ncurses or curses
AC_SEARCH_LIBS(wbkgdset, ncurses curses,,echo "*** The ncurses library is required!";exit 1)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <br...@us...> - 2011-10-20 02:01:40
|
Revision: 33
http://ularn.svn.sourceforge.net/ularn/?rev=33&view=rev
Author: bress
Date: 2011-10-20 02:01:33 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
Add a missing makefile
Added Paths:
-----------
ularn/trunk/data/Makefile.in
Added: ularn/trunk/data/Makefile.in
===================================================================
--- ularn/trunk/data/Makefile.in (rev 0)
+++ ularn/trunk/data/Makefile.in 2011-10-20 02:01:33 UTC (rev 33)
@@ -0,0 +1,79 @@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+##########################################################################
+# the location of data files
+datarootdir = @datarootdir@
+DATADIR = @datadir@/Ularn
+DOCDIR = @docdir@/@PACKAGE_NAME@-@PACKAGE_VERSION@
+distdir = @top_srcdir@/@PACKAGE_NAME@-@PACKAGE_VERSION@/data
+##########################################################################
+
+##########################################################################
+# final location of binary (for 'make install')
+BINDIR = @bindir@
+##########################################################################
+
+##########################################################################
+# name of program
+PROGRAM = Ularn
+##########################################################################
+
+##########################################################################
+# link flags
+LDFLAGS= @LIBS@ @TERMLIBS@
+##########################################################################
+
+##########################################################################
+# compile flags
+CFLAGS= @CFLAGS@
+##########################################################################
+
+##########################################################################
+# compile defs
+DEFS= -DLIBDIR='"@datadir@/Ularn"'
+##########################################################################
+
+##########################################################################
+# data files
+LIBFILES= Uhelp Umaps Ufortune
+##########################################################################
+
+##########################################################################
+# misc files
+MISCFILES= Ularnopts
+##########################################################################
+
+##########################################################################
+# build related files
+BUILDFILES= Makefile.in
+##########################################################################
+
+all:
+
+##########################################################################
+install: $(LIBFILES)
+ if test ! -d $(DESTDIR)$(DOCDIR) ; then mkdir -p $(DESTDIR)$(DOCDIR) ; fi
+ -cp $(MISCFILES) $(DESTDIR)$(DOCDIR)
+ -chmod 644 $(DESTDIR)$(DOCDIR)/*
+ if test ! -d $(DESTDIR)$(DATADIR) ; then mkdir -p $(DESTDIR)$(DATADIR) ; fi
+ -cp Umaps Ufortune Uhelp $(DESTDIR)$(DATADIR)
+ -chmod 644 $(DESTDIR)$(DATADIR)/Umaps $(DESTDIR)$(DATADIR)/Ufortune \
+ $(DESTDIR)$(DATADIR)/Uhelp
+
+lint:
+
+clean:
+
+distclean: clean
+ rm -f Makefile
+
+dist: clean
+ mkdir $(distdir)
+ cp $(LIBFILES) $(distdir)
+ cp $(MISCFILES) $(distdir)
+ cp $(BUILDFILES) $(distdir)
+
+tags:
+
Property changes on: ularn/trunk/data/Makefile.in
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <br...@us...> - 2011-10-20 01:57:32
|
Revision: 32
http://ularn.svn.sourceforge.net/ularn/?rev=32&view=rev
Author: bress
Date: 2011-10-20 01:57:22 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
Organize the source
Modified Paths:
--------------
ularn/trunk/configure.ac
Added Paths:
-----------
ularn/trunk/Makefile.in
ularn/trunk/data/
ularn/trunk/data/Ufortune
ularn/trunk/data/Uhelp
ularn/trunk/data/Ularnopts
ularn/trunk/data/Umaps
ularn/trunk/data/Uscore
ularn/trunk/src/
ularn/trunk/src/Makefile.in
ularn/trunk/src/action.c
ularn/trunk/src/bill.c
ularn/trunk/src/create.c
ularn/trunk/src/data.c
ularn/trunk/src/diag.c
ularn/trunk/src/display.c
ularn/trunk/src/extern.h
ularn/trunk/src/fortune.c
ularn/trunk/src/header.h
ularn/trunk/src/help.c
ularn/trunk/src/io.c
ularn/trunk/src/itm.h
ularn/trunk/src/main.c
ularn/trunk/src/monst.h
ularn/trunk/src/monster.c
ularn/trunk/src/moreobj.c
ularn/trunk/src/movem.c
ularn/trunk/src/nap.c
ularn/trunk/src/object.c
ularn/trunk/src/player.c
ularn/trunk/src/player.h
ularn/trunk/src/regen.c
ularn/trunk/src/savelev.c
ularn/trunk/src/scores.c
ularn/trunk/src/show.c
ularn/trunk/src/signal.c
ularn/trunk/src/sphere.c
ularn/trunk/src/sphere.h
ularn/trunk/src/store.c
ularn/trunk/src/tok.c
ularn/trunk/src/tty.c
Removed Paths:
-------------
ularn/trunk/Makefile.in
ularn/trunk/Ufortune
ularn/trunk/Uhelp
ularn/trunk/Ularnopts
ularn/trunk/Umaps
ularn/trunk/Uscore
ularn/trunk/action.c
ularn/trunk/bill.c
ularn/trunk/create.c
ularn/trunk/data.c
ularn/trunk/diag.c
ularn/trunk/display.c
ularn/trunk/extern.h
ularn/trunk/fortune.c
ularn/trunk/header.h
ularn/trunk/help.c
ularn/trunk/io.c
ularn/trunk/itm.h
ularn/trunk/main.c
ularn/trunk/monst.h
ularn/trunk/monster.c
ularn/trunk/moreobj.c
ularn/trunk/movem.c
ularn/trunk/nap.c
ularn/trunk/object.c
ularn/trunk/player.c
ularn/trunk/player.h
ularn/trunk/regen.c
ularn/trunk/savelev.c
ularn/trunk/scores.c
ularn/trunk/show.c
ularn/trunk/signal.c
ularn/trunk/sphere.c
ularn/trunk/sphere.h
ularn/trunk/store.c
ularn/trunk/tok.c
ularn/trunk/tty.c
Deleted: ularn/trunk/Makefile.in
===================================================================
--- ularn/trunk/Makefile.in 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/Makefile.in 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,144 +0,0 @@
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-
-##########################################################################
-# the location of data files
-datarootdir = @datarootdir@
-DATADIR = @datadir@/Ularn
-distdir = @PACKAGE_NAME@-@PACKAGE_VERSION@
-##########################################################################
-
-##########################################################################
-# final location of binary (for 'make install')
-BINDIR = @bindir@
-##########################################################################
-
-##########################################################################
-# name of program
-PROGRAM = Ularn
-##########################################################################
-
-##########################################################################
-# link flags
-LDFLAGS= @LIBS@ @TERMLIBS@
-##########################################################################
-
-##########################################################################
-# compile flags
-CFLAGS= @CFLAGS@
-##########################################################################
-
-##########################################################################
-# compile defs
-DEFS= -DLIBDIR='"@datadir@/Ularn"'
-##########################################################################
-
-##########################################################################
-# the source files
-SRCS1 = action.c bill.c create.c data.c diag.c display.c fortune.c\
- player.c help.c io.c main.c monster.c moreobj.c movem.c object.c\
- regen.c savelev.c scores.c show.c signal.c sphere.c store.c tok.c \
- nap.c tty.c
-##########################################################################
-
-##########################################################################
-# the object files
-OBJS1 = action.o bill.o create.o data.o diag.o display.o fortune.o\
- player.o help.o io.o main.o monster.o moreobj.o movem.o object.o\
- regen.o savelev.o scores.o show.o signal.o sphere.o store.o tok.o \
- nap.o tty.o
-##########################################################################
-
-##########################################################################
-# header files
-HDRS = header.h itm.h monst.h sphere.h config.h player.h extern.h
-##########################################################################
-
-##########################################################################
-# data files
-LIBFILES= Uhelp Umaps Ufortune
-##########################################################################
-
-##########################################################################
-# build related files
-BUILDFILES= Makefile.in configure configure.ac config.guess config.h.in \
- config.sub
-##########################################################################
-
-##########################################################################
-# misc files
-MISCFILES= CHANGES.text INSTALL LICENSE MANIFEST README README.spoilers \
- TODO Ularnopts
-##########################################################################
-
-all: $(PROGRAM)
-
-$(PROGRAM): $(OBJS1)
- $(CC) $(DEFS) -o $@ $(LDFLAGS) $(OBJS1) $(SYS_LIBRARIES)
-
-.c.o:
- $(CC) $(DEFS) -c $(CFLAGS) $<
-
-##########################################################################
-install: $(PROGRAM) $(LIBFILES)
- if test ! -d $(DESTDIR)$(DATADIR) ; then mkdir -p $(DESTDIR)$(DATADIR) ; fi
- -cp Umaps Ufortune Uhelp $(DESTDIR)$(DATADIR)
- -chmod 644 $(DESTDIR)$(DATADIR)/Umaps $(DESTDIR)$(DATADIR)/Ufortune \
- $(DESTDIR)$(DATADIR)/Uhelp
- if test ! -d $(DESTDIR)$(BINDIR) ; then mkdir -p $(DESTDIR)$(BINDIR) ; fi
- -cp $(PROGRAM) $(DESTDIR)$(BINDIR)
-
-
-lint:
- lint $(SRCS1) $(LINTLIBS)
-
-clean:
- rm -f $(PROGRAM) $(OBJS1) core Ularn.exe
-
-distclean: clean
- rm -f config.h Makefile
- rm -f *~ .#*
-
-dist: clean
- mkdir $(distdir)
- cp $(LIBFILES) $(distdir)
- cp $(HDRS) $(distdir)
- cp $(SRCS1) $(distdir)
- cp $(BUILDFILES) $(distdir)
- cp $(MISCFILES) $(distdir)
-
-tags: nulldep
-
-nulldep:
- ctags -w $(SRCS1) $(HDRS)
- rm -f TAGS
- ctags -xw $(SRCS1) $(HDRS) > TAGS
-##########################################################################
-
-# DO NOT DELETE
-action.o: header.h config.h extern.h
-bill.o: header.h config.h
-create.o: header.h config.h itm.h extern.h
-data.o: header.h config.h
-diag.o: header.h config.h
-display.o: header.h config.h player.h itm.h monst.h extern.h
-fortune.o: header.h config.h extern.h
-player.o: header.h config.h itm.h extern.h
-help.o: header.h config.h
-io.o: header.h config.h extern.h
-main.o: header.h config.h
-monster.o: header.h config.h itm.h player.h monst.h extern.h
-moreobj.o: header.h config.h player.h itm.h monst.h extern.h
-movem.o: header.h config.h player.h itm.h extern.h
-object.o: header.h config.h player.h extern.h
-regen.o: header.h config.h extern.h
-savelev.o: header.h config.h sphere.h player.h itm.h monst.h extern.h
-scores.o: header.h config.h player.h extern.h
-show.o: header.h config.h
-signal.o: header.h config.h
-sphere.o: header.h config.h itm.h sphere.h extern.h
-store.o: header.h config.h extern.h
-tok.o: header.h config.h
-nap.o: header.h config.h
-tty.o: header.h config.h
Added: ularn/trunk/Makefile.in
===================================================================
--- ularn/trunk/Makefile.in (rev 0)
+++ ularn/trunk/Makefile.in 2011-10-20 01:57:22 UTC (rev 32)
@@ -0,0 +1,97 @@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+##########################################################################
+# the location of data files
+datarootdir = @datarootdir@
+DATADIR = @datadir@/Ularn
+DOCDIR = @docdir@/@PACKAGE_NAME@-@PACKAGE_VERSION@
+distdir = @top_srcdir@/@PACKAGE_NAME@-@PACKAGE_VERSION@
+##########################################################################
+
+##########################################################################
+# final location of binary (for 'make install')
+BINDIR = @bindir@
+##########################################################################
+
+##########################################################################
+# name of program
+PROGRAM = Ularn
+##########################################################################
+
+##########################################################################
+# link flags
+LDFLAGS= @LIBS@ @TERMLIBS@
+##########################################################################
+
+##########################################################################
+# compile flags
+CFLAGS= @CFLAGS@
+##########################################################################
+
+##########################################################################
+# compile defs
+DEFS= -DLIBDIR='"@datadir@/Ularn"'
+##########################################################################
+
+##########################################################################
+# build related files
+BUILDFILES= Makefile.in configure configure.ac config.guess config.h.in \
+ config.sub
+##########################################################################
+
+##########################################################################
+# misc files
+MISCFILES= INSTALL MANIFEST TODO
+##########################################################################
+
+##########################################################################
+# doc files
+DOCFILES= CHANGES.text LICENSE README README.spoilers
+##########################################################################
+
+SUBDIRS = src data
+
+all:
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+ done
+
+
+##########################################################################
+install: all
+ if test ! -d $(DESTDIR)$(DOCDIR) ; then mkdir -p $(DESTDIR)$(DOCDIR) ; fi
+ -cp $(DOCFILES) $(DESTDIR)$(DOCDIR)
+ -chmod 644 $(DESTDIR)$(DOCDIR)/*
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+ done
+
+
+lint:
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+ done
+
+clean:
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+ done
+
+distclean: clean
+ rm -f config.h Makefile
+ rm -f *~ .#*
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+ done
+
+dist: clean
+ mkdir $(distdir)
+ cp $(BUILDFILES) $(distdir)
+ cp $(MISCFILES) $(distdir)
+ cp $(DOCFILES) $(distdir)
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+ done
+
Property changes on: ularn/trunk/Makefile.in
___________________________________________________________________
Added: svn:executable
+ *
Deleted: ularn/trunk/Ufortune
===================================================================
--- ularn/trunk/Ufortune 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/Ufortune 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,39 +0,0 @@
-A perfect gem is twice as beautiful
-Sitting down can have unexpected results
-Don't pry into the affairs of others
-Drinking can be hazardous to your health
-Beware of the gusher!
-Some monsters are greedy
-Nymphs have light fingers
-Try kissing a disenchantress!
-Hammers and brains don't mix
-What does a potion of cure dianthroritis taste like?
-Hit point gain/loss when raising a level depends on constitution
-Ask the genie
-Be sure to pay your taxes
-Are monsters afraid of something?
-Some dragons can fly
-Dost thou strive for perfection?
-Patience is a virtue unless your daughter dies
-What can the Eye of Larn see for its guardian?
-A level-25 player casts like crazy!
-Spells not regenerating? You need more energy
-Difficulty affects regeneration
-Control of the pesky spirits is most helpful
-Don't fall into a bottomless pit
-Watch out for trap doors
-Dexterity allows you to carry more
-You can get 2 points of WC for the price of one
-Never enter the dungeon naked! The monsters will laugh at you!
-Did someone put itching powder in your armor?
-Take the express
-Avoid opening doors -- you never know whats on the other side.
-The greatest weapon in the game has not the highest Weapon Class
-The most powerful scroll isn't for sale
-Identify things before you use them
-There's more than one way through a wall
-Try Dealer McDope's for all your recreational needs!
-Who is tougher than a demon prince?
-Slayer has a grudge
-Wonderful wands prevent you from falling
-It is said that the king is never far from his throne
Deleted: ularn/trunk/Uhelp
===================================================================
--- ularn/trunk/Uhelp 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/Uhelp 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,135 +0,0 @@
-5 Welcome to the game of Ularn. At this moment, you face a great problem.
-Your daughter has contracted a strange disease and none of your home remedies
-seems to have any effect. You sense that she is in mortal danger and you must
-try to save her. Time ago you heard of a land of great danger and opportunity.
-Perhaps here is the solution you need.
-
- It has been said that there once was a great magician who called himself
-Polinneaus. Many years ago, after having many miraculous successes, Polinneaus
-retired to the caverns of Ularn, where he devoted most of his time to the
-creation of magic. Rumors have it that one day Polinneaus set out to dispel
-an attacking army in a forest some distance to the north. It is believed that
-there he met his demise.
-
- The caverns of Ularn, it is thought, must be magnificent in design
-and contain much magic and treasure. One option you have is to undertake a
-journey into these caverns.
-
-
- Good Luck! (You're going to need it.)
-
-
-
-
- ^[[7mHelp File for The Caverns of Ularn^[[m
-
-h move to the left H run left . stay here
-j move down J run down Z teleport yourself
-k move up K run up c cast a spell
-l move to the right L run right r read a scroll
-y move northwest Y run northwest q quaff a potion
-u move northeast U run northeast W wear armor
-b move southwest B run southwest T take off armor
-n move southeast N run southeast w wield a weapon
-^ identify a trap g give present pack weight P give tax status
-d drop an item i inventory your pockets Q quit the game
-v print program version S save the game D list all items found
-? this help screen C close an open door e eat something
-
-Ularn -s list the scoreboard
-Ularn -i list scores with inventories
-Ularn -n suppress welcome message when beginning a game
-Ularn -r restore checkpointed game
-Ularn -<number> specify difficulty level
-Ularn -o <optsfile> specify the .Ularnopts file to be used
-Ularn -c create new scoreboard (requires wizard password)
-Ularn -h print out all the command line options
- ^[[7mSpecial Notes^[[m
-
-When dropping gold, if you type '*' as your amount, all your gold gets dropped.
-In general, typing in '*' means all of what your interested in. This is true
-when visiting the bank, or when contributing at altars.
-
-When in the store, trading post, school, or home, an ^[[7m<escape>^[[m will get you out.
-
-When casting a spell, if you need a list of spells you can cast, type '^[[7mD^[[m' as
-the first letter of your spell. The available list of spells will be shown,
-after which you may enter the spell code. This only works on the 1st letter
-of the spell you are casting. You may also type '^[[7mD^[[m' at any time - this will
-show all the spells you know, as well as all the potions and scrolls you have
-encountered and identified so far.
-
-
-
-
-
-
-
-
-
- ^[[7mHow to use the .Ularnopts option file^[[m
-
-The file ".Ularnopts", if used, should be in your home directory (see -o).
-A sequence of words terminated by whitespace is used to specify options.
- Word Meaning
- enable-checkpointing turn on periodic checkpointing
- no-introduction do not display intro message
- no-beep disable beeping of the terminal
- no-bold turn off highliting
- no-nap eliminate all delays when playing game
- no-mail don't send mail after winning game
- male choose your sex to be a man
- female choose your sex to be a woman
- name: "your name" choose your playing name
- savefile: savefilename full pathname of savefile
- character: character choose your character
- monster: "monstname" choose a new name for the monster
-Your name and monster names must be enclosed in double quotation marks and may
-be up to 34 characters long. Longer names are truncated. Anything enclosed in
-quotation marks is considered one word, and must be separated from other words
-by whitespace. A space must follow a colon, for example: "character: klingon".
- ^[[7mExample .Ularnopts file^[[m
-
-character: klingon
-enable-checkpointing
-no-introduction
-no-beep
-no-bold
-name: "Satyr, the Ularn God"
-savefile: /u/philc/savefiles/Usave
-monster: "Hippy" # rename Hobgoblin to Hippy
-monster: "Jackass" # rename Jackal to Jackass
-monster: "loopy dude" # rename lemming to loopy dude
-monster: "Aggravation" # rename Ant to Aggravation
-monster: "Kop"
-monster: "Lucky fool"
-monster: "Dipshit"
-monster: "bore"
-monster: "Creep"
-monster: "gack"
-
-
-
-
- ^[[7mExplanation of the Ularn scoreboard facility^[[m
-
- Ularn supports TWO scoreboards, one for winners, and one for deceased
-characters. Each player is allowed one slot on each scoreboard, if the score
-is in the top ten for that scoreboard. This design helps ensure that frequent
-players of Ularn do not hog the scoreboard and gives more players a chance
-for glory. Level of difficulty is also noted on the scoreboards and this
-takes precedence over score for determining what entry is on the scoreboard.
-For example: if "Satyr, the Ularn God" has a score of 128003 on the scoreboard
-at diff 0, then his game at diff 1 and a score of 4112 would replace his
-previous entry on the scoreboard. Note that when a player dies, his inventory
-is stored in the scoreboard so that everyone can see what items the player had
-at the time of his death.
-
-
-
-
-
-
- Ularn was written in 1987 by Phil Cordier at UC Santa Cruz.
- It was updated in 2001 by Josh Brandt
- Contact him at mu...@gw... for info regarding the game.
Deleted: ularn/trunk/Ularnopts
===================================================================
--- ularn/trunk/Ularnopts 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/Ularnopts 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,15 +0,0 @@
-#no-introduction
-#no-nap
-enable-checkpointing
-#bold-off
-#male
-female
-#character: klingon
-name: Satyr
-monster: "Aardvark"
-monster: "Bitch"
-monster: "Cad"
-monster: "Dweeb"
-monster: "Geek"
-monster: "Hippy"
-monster: "louie"
Deleted: ularn/trunk/Umaps
===================================================================
--- ularn/trunk/Umaps 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/Umaps 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,377 +0,0 @@
-###################################################################
-# # . # # # # # . #
-# D D . . D . #
-###D########################################## # # ###D###
-# -# #. # # ################ . .#
-# ####### ######## ############ D #### # # #
-# ... #.# # # # . # # # #### # ############ # ###D###
-# #.# # # ## # # # ############ #### # #- # # # #. #
-# . # # # # ## #- # # # - D #### # # . D # #.# # ... #
-# # #.# # # # # # . . # # # # # # #-# # ~.! #
-###D### ### #######D## # ############ ###### ########## ### #######
-# # .# # ..... ...#
-###D###########################################################D###
-# . #.....# # # # -# # # # # #
-# ..... . D D D D. #
-# #.....# # # # # # .# # # #
-###################################################################
-
-###################################################################
-# # . - . . . #
-# #D############################################################ .#
-# # # . - . # ##
-#.#.#D####################################################### #. #
-# # # # . . . # ##-#
-# #-# #D################################################### # # .#
-# # # # # . # - # # . -# . #.......#!# # # ##
-# # # # # ### ### ### ###.### ### ### ### ### ###.###.###~# # #. #
-#.# # # . # . . # . # - # . . # ....#.....# # ## #
-# #.# ##################################################### # # .#
-# # # .. . #. #-##
-# # ######################################################### #. #
-# # .. - . . . . ## #
-#-############################################################## #
-#. . #
-###################################################################
-
-###################################################################
-### # ## #...# . . . . # # # ## .###
-# ## # ## # ####################### # #. ## #####D#D #
-# D######## ## ##### # D D # # # # ## ## -..## #
-# # ##..- # ## # # ## ## . # # # # # ### ### ### #
-# # ##-..# ## . ## # ##-. ## . # # # # ## # #-.-## # #
-# # ## -##### ## # . ## . - ## # # # # ## # #..## # #
-#.#### ##D##-.# ## # . ## .....-## # # # #..## -#### ## # #
-# # # DD ##-.D ## # ..######D###### # # # #.DD ### D## ### #
-# #.## ## ##### ## ### # #D# # # #..## # ##...# #
-# #.# ##..## ## # # ##.## ######## ## ## ####..# #
-#-#. ##...## ##. ###### ### .-## # - # ## ## ## # #
-# # ##..#.## ##. ### # # ##.-. .## # ###### ## #### ##D. #
-# ### ##### ## .###!. . .~##. ## # ## ## -## #
-# ## ## ############ ##################### ### ## #### ## #
-### # D . . . - .. ##..... ####
-###################################################################
-
-###################################################################
-#. # # # . # # # ## #### .. #
-# # # # ###### # # . . . # . # .# . ##. .. #
-# #. # . . # # . # #D######################## #D## - #
-# ################# # ##.## . . #..## #
-# # .# . # ### ##. .## ##################### ## #
-# # - .D . - # # - # ## # ## #. # # # # ## ## #
-# ######## .. # ## ### ## # # # # # # # # # ## ###
-# D. # ## ##!## ## # # # # # # # # .. ##
-# ################# . ## ##.~.## ##### # # # # # # ##### ... #
-# D. # . # ##. ## .#. ## ## ..# # #.# # #.# . -. #
-# # .- . #. - # ## ## ..#.. ## ## # # #-# # # # ######
-# # D. # ## ## #####- ## ## # # # # # # #.# #
-# ##############D## ## ## .. ... .. ## ##### #.# # # ## # - ##
-# #. . # ## ########D######## ## . # # # # # # # . #
-# # - . ### - . . ##. # # #### # #
-###################################################################
-
-###################################################################
-# # .- . #. - # ## ## ..#. ## ## # # #-# # # # ######
-# # D. # ## ## #####- ## ## . # # # # # #.# #
-# ##############D## ## ## . .. ## ##### #.# # # ## # - ##
-#. # # # . ##### # # # #### .. #
-# #D# # ###### # # . . . # . # .# . ##. .. #
-# #. # . . # # . # #D######################## D## - #
-# ################# . ## ##. .## ##### # # # # # # ##### ... #
-# D. # . # ##. ## .#. ## ## ..# # #.# # #.# . -. #
-# #. . # ## ########D######## ## . # # # # # # # . #
-# ################# # ##.## . . #..## #
-# # .# . # #### ##. .##DD##################### ## #
-# # - .D . - # # -## ## # ## #. # # #. # ## ## #
-# ######## .. # # # ## .### .## # # # # # # # # # ## ###
-# D. # # ## ##!## ## # # # # # # # .. ##
-# # - . ### -## . .~. . ## ###. # # #### # #
-###################################################################
-
-###################################################################
-#.. . D # . # #- #
-############# ######### # ## ### ##### ## #### ###### ####### ### #
-#.#!#~# # # .-# # #- # # # # -# # # #
-# # #.# . # ####### # # # # # # # # # #####
-# # ..# ##### # # # #### # ## ## ## # ###### ####### # #
-# - ..D # D # . D # # # #.##### ## ## # #. #.# #..# # ### #
-####### ####### ### # # # # # # D # D D #..D # #
-#- # # # #### # ###### # ## # #. # #..# #####
-### #######################- # # # ###################### # #
-# ... # . # #..# ### # - .. . #. ### #
-# ######## # # # # ### #################### # # #
-# # ### #
-################################################################# #
-#- # # D ### # # # #
-# . # # # # D #
-###################################################################
-
-###################################################################
-# .. #
-# ############## ############################################## # #
-# # # # # .. # # #
-# #D## # # ############D################# ########### # # #
-######### #- # # # #- D # # ~ # # # # # # #
-# # # # # # # ### # # # D - # # ####### # # # #
-# .... # #### # # # #!# # # ###### .. #.# # # # # # #
-# .... # # # # ### # # # # #########D#### # ### # # # # #
-# .... ######## # # D # #- # #.. # ...#.# # #.# # # # # #
-# # # ### # #### #.- D - #.# #.#.# # # # # #
-#####DD## ######## # # D D. # # # #...# # # # # #
-# # ..# # # # ############################## # ##### # # # # #
-# ......# # # # # # # # # #
-# ####### ###### ################################ ######### # ### #
-# .D. # #
-###################################################################
-
-###################################################################
-# ## ## ### ## #
-# ##### ## ..- ## ##.## ## #
-# # ! ## ## . ## ## .## .. ## #
-# #....###### ## ## ## . ## ## #
-# # - # ## ##D# ## . ## ## #
-# #####D ~ ####### ###........ ## ... ## ## #
-# # # ## ## .... ## . ## ## #
-# #. ######## ## ## . - ####D#### - #
-# #.- #...## ## ... ## ### ...... ## ## #
-# #. #..## ## ######### ## ... ## ### ## .. #
-# #.. #.## ## ## - ## . #### ## ## ##### ## #
-# #####D## ## ## ###### ## ## ####### ## #
-# D -.## #### ######## ##DD## ######## #D #
-# ###### ... ## ########## ## #
-#### . . ###
-###################################################################
-
-###################################################################
-# #
-# ####.########################################## ## ##########
-# # #.#.#.# #.. #. # # #
-####### # # # # # ##### #! # ########### # ### #
-# # # # # # # ##...## # # # # # #-# #
-# ..- D # # # # # ## . ## ####D##### .. ### # # # #
-# # # # ##. ~ .## # # ### # # ##### # #
-############ # # # # ## . . .## #...# .. #.# # # # #
-# .. .# # # # # ## - ## # # D.D # ######### #
-# . D # # # # ##.......## ####D#####.# # #
-# - . # # # # # ## ## # . # ### ########### #
-############ #.#.# # ###D### # . #....# # #
-# # #-# D .. # .# ###....## ##-### #
-#### ########################################## ###### ### #
-# . #
-###################################################################
-
-###################################################################
-# #
-# ###########################D####### ## #
-# ####################### # ##...... ## ## #
-# ########D###### # # !##.... ## ## #
-# ############ ## ## ... # # #...## ~ ## ###### #
-# # # # # ...... # # # .. ##### ## #
-# # - .. # # # ########### # # . ######### ## #
-# ##### ##### # # # # #... ## ## #
-# # # ########## ######## ########DD#### ####### #
-# # # .... # # # # # ## ## #
-# ##### # # ....# # ######### # # ##### ## #
-# #- ######D##########..# # ######### # - #.. ## ## #
-# ##### # # # #... #.....## #
-# # ################### ###############... #### # ######
-# # #
-###################################################################
-
-###################################################################
-# #
-########### ##### ##### #####D#### ##### ###### #
-#.. # #-..D ###### ## # ## # ## ..## ### #### #
-# #### ### ##### # ## # ##### # ## ### ## # # #
-# # # # # # ##### # ## # # #### # #..##### - ### #
-# # # ####### ### #...# # ######## # # #~. .... # #
-# # # # #...# # # ######### ############## #
-# # ###### ####### # ### ### # .. # #
-# # # - # #-#####!# # # #### ## #### # #
-# ###### # ########## #.. ....# # ######## # # # ## ## #
-# -.# ##### ####...## # . .# #..# # ## # #
-# #### ###### #.### #####.#### #### ### ## # #
-# #- #######....#### ...... #.# . # ## # #
-# ####### ##### ###########.############### ### #
-# . #
-###################################################################
-
-###################################################################
-# # #- . # # # # # # # # #
-# # # #####.##### # # # # # # # # # # ###########D########### #
-# # ##### # # ### # # # # # # # # # ### #.... # # # #
-# # # # # # # # # # # # # # #.!. -.. #.##.# # #
-# # . - # # ####### # # # # # # # # # ########## ## # #
-#.####### # # D # . # # #
-#. -# ################################################### #
-# ##### D. . #
-# # ### ###D### ### ### ###D### ### ### ###D### ###.### #
-# # ###### ### .# .# #. # # # # # # # # . # #
-# ### # -# ### .#. - .# # # #...- # # .. # # -..# # . # #
-# # # ### #. ~ .# # # # # # # # .. .# # # #
-#.###### # ### # # #.....# # # # # # # # # #
-# # ####### ####### ####### ####### ####### ####### ####### #
-# # ... .. #
-###################################################################
-
-###################################################################
-# # . # ### # # # # . #
-# D D . # . D . #
-############################################### # # ###D###
-# -# #. # # ################ . .#
-# #######D######## ############ # #### # # #
-# ... #. # #!~ . # # # #--# # ############ #####D###
-# #.# # # ## # # # ############ #--# # #- # # # #. #
-# . # #-# # ## #- # # # - D ## # # # . D #### #.# # ... #
-# # #-# # # # # # . . # # # # # # #-# # -.- #
-###D### ### ####### ## # ############ ###### ########## ### ###D###
-# # . ..... ...#
-##################################### # ###############D###
-# . #.....# # # # -########### # # # #
-# ..... . D D # D D. #
-# #.....# # # # # .# # # #
-###################################################################
-
-###################################################################
-#.. . # D . #- #
-### ######### ######### # ## ### ##### ## ########### ####### ### #
-#.# # # # .-# # #- # # # # -# # # #
-# # #.# . # ####### # # # # # # # # # #####
-# # ..####### # # # #### # ## ## ##!# ###### ####### # #
-# - ..D # D # . D # # # #.##### ## ## # #. #.# #..# # ### #
-####### ####### ### # # # # # # D # D D #..D # #
-#- # # # #### # ###### # ## # #. # #..# #####
-### #######################- # # # ###################### # #
-# ... # . #..# ### # - .. . #. ### #
-# # # # #-# #################### # # #
-# # # #
-################################-################################ #
-#-..... # ####D ### # # # #
-#~..... # # # # D #
-###################################################################
-
-###################################################################
-# .. #
-# ############## ############################################## # #
-# # # # # .. # # #
-# #D## # # ############D################# ########### # # #
-######### #- # # # #- D # #.!..# # # # # # #
-# # # # # # # # ### ## # #....D - # # ####### # # # #
-# .... # #### # # # #~# # # ###### .. #.# # # # # # #
-###....## # # # ###.# # # #########D## # # ### # # # # #
-# .... ######## # # D .# #- # .. # ...#.# # #.# # # # # #
-# # ## # ### .# #### .- D - #.# #.#.# # # # # #
-#####DD## ######## #... .# . # # # #.#. # # # # #
-# # ..# # # ############################## # # ##### # # # #
-# ......# # # # # # # # # # #
-# ####### ###### ################################D# ######### ### #
-# .D. #-.-#
-###################################################################
-
-###################################################################
-# ## ## ## ## ## #
-# ############## ## ..- ## ## . ## ## #
-# # # ## ## . ## ## . ##.. ## #
-# #....###### ## ## ######## ####### . ## ## #
-# # - # ## ## ##D# ## . ## ## #
-# # D###### ###........ ## ... ## ###### #
-# # # ## ## .... ## . ## ## - # #
-# #. ######## ## ## . - ####D####.. D #
-# #.- #...## ## ... ## ### ...... ## ##### #
-# #. #..## ## ######### ## ... ## ### ## .. #
-# #.. #.## ## ## - ## . #### ## ## ##### ## #
-# #####D####### # ## ## ##..## ## ## ## ## ## #
-# D -.## # # #### ##.-.-## ##DD## ### #### ## #
-# ######. ...# #### ## #### ##### ## ##D#
-####~!.... D . . #
-###################################################################
-
-###################################################################
-# #
-# ####.########################################## ## ##########
-# # #.#.#.# #.. . # # #
-####### # # # # # ############# # ########### # ### #
-# # # # # # # --##...##-- # # # # #-# #
-# ..- D # # # # # #-## . ##-# ####D##### .. ### # # # #
-# # # # ###. .### # ~ # ### ### ##### # #
-############ # # # # ## . . .## #...# .. #.# # #
-# .. .# # # # # ## - ## # # D. # ######### #
-# . D # # # # ###.......### ####D#####.# # #
-# - . # # # # # -## ##- # . ### ########### #
-############ #.#.# # ######D###### # . ....# # #
-# #!#-# # .. # . ###....## ##-### #
-#### ############################## ########## ###### ### #
-# D . #
-###################################################################
-
-###################################################################
-# #
-# ###############D####################D# #
-# ####################### # ##...... # #
-# ########D###### # # ##.... # #
-# ############### ## ## ... # # #...## ##### #
-# # ~ # # #!...... # # # .. ##### # #
-# # - .. # # # ########### # # . ######### # #
-# ##### ######## # # # # # #... ## # #
-# . # # # ########## ######## ########D #### ###### #
-# . # # ....# # # # # # ## # #
-# ##### # ###### # ....# # ######### # # #####D# #
-# #- ## # #######..# # ######### # - #.. #
-# ##### # # # #... #..... #
-# # ################### ###############... #### ######
-# # #
-###################################################################
-
-###################################################################
-# # #
-########### ##### # #####D#### ##### ###### #
-#.. # #~..D ###### ## # ## # ## ..## ### #### #
-# #### ### ##### # ## # ##### # ## ### ## # # #
-# # # # # # ##### # ## # # #### # #..##### - ### #
-# # # ####### ### #...# # ######## # # #!. .... # #
-# # # # #...# # # ######### ############## #
-# # ###### ####### # ### ### # .. # #
-# # # - # #- # # # ######## #### # #
-# # # ########## #.. ....# # ######## # ## ## #
-# # -. ##### ####...## # . .# .. # # #
-# # ###### ##### #####.#### ####### # #
-# # - #######....#### ...... #.# . # ## # #
-# ######### ##### ###########.############### ### #
-# . #
-###################################################################
-
-###################################################################
-# D D #-..........# # # # # #
-# # # #####.#####.# # # # # # #############D########### #
-# # ##### #.-#.#~###.# # # # # # ### .... # # # #
-# # . # #D###.......# # # # # # # . . -.. #. #.# # #
-# # . - # ##. #.####### # # # # # ################## # #
-#D####### # ##. # D # . # # #
-#. D D -# # ################################################### #
-# ###### ## . . #
-# # D ### ###D###D####### ###D###D####### ###D###D####### #
-# # ###### # # .# .# #. # # # # # # # # . # #
-# ### -# # # .#. - .# # # #...- # # .. # # -..# # . # #
-#DD# # # # #. .# # # # # # # # .. .# # # #
-#.###### # # # # #.....# # # # # # ! # # # #
-# # ####### ####### ### ###D####### ### ###D####### ### ###D#
-# # ... .. #
-###################################################################
-
-###################################################################
-#-D . -# . # # -- . #
-# # ######## # ########################### # # # -- .-######## #
-# # # . # # # # # # ######### . . #
-# # # ######## # ####################### # # # #- . # ########
-# # # # #. . .# # #.# ######### # #
-# # ############ #. ####### ############ # # #- ######## #
-# # #.--. ## # # # # # ############# . #
-# # #-..- ######### # ####### ##### # #### #- # ########
-# # ##### # # # # -# # # # ############# # #
-#.# . #.# # # # # ####### ##### # #### # # # # # ######## #
-# ##### # #.# #.# #.# # .#. # # # # # # # # # . #
-# # . # # # # # # # # ####### ############ #.# # #.# # # # ########
-# # # # # # # # # # # # # # # # # # # # #
-# # # # # # # # # # ####### ################ # # # # # # ######## #
-# # # # # #!~---D # # # . . #
-###################################################################
Deleted: ularn/trunk/Uscore
===================================================================
(Binary files differ)
Deleted: ularn/trunk/action.c
===================================================================
--- ularn/trunk/action.c 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/action.c 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,535 +0,0 @@
-/* action.c */
-#include "header.h"
-#include "itm.h"
-#include "player.h"
-#include "extern.h"
-
-run (dir)
-int dir;
-{
- int i;
- i=1;
- while (i) {
- i=moveplayer(dir);
- if (i>0) {
- if (c[HASTEMONST])
- movemonst();
- movemonst();
- randmonst();
- regen();
- }
- if (hitflag) i=0;
- if (i!=0)
- showcell(playerx,playery);
- }
-}
-
-/*
- function to wield a weapon
- */
-wield ()
-{
- int i;
-
- while (1) {
- if ((i = whatitem("wield"))==ESC) return;
- if (i != '.') {
- if (i=='*') showwield();
- else if (i=='-') {
- c[WIELD]=-1;
- lprcat("\nYou unwield your weapon.");
- bottomline();
- return;
- }
- else if (iven[i-'a']==0) { ydhi(i); return; }
- else if (iven[i-'a']==OPOTION) { ycwi(i); return; }
- else if (iven[i-'a']==OSCROLL) { ycwi(i); return; }
- else if ((c[SHIELD]!= -1) && (iven[i-'a']==O2SWORD)) {
- lprcat("\nBut one arm is busy with your shield!");
- return;
- }
- else if (i-'a'==c[WEAR] || i-'a'==c[SHIELD]) {
- lprintf("\nYou can't wield your %s while you're wearing it!",
- (i-'a'==c[WEAR]) ? "armor" : "shield");
- return;
- }
- else {
- c[WIELD]=i-'a';
- lprintf("\nYou wield %s", objectname[iven[i-'a']]);
- if (ivenarg[i-'a']>0) lprintf (" +%d", (long)ivenarg[i-'a']);
- if (ivenarg[i-'a']<0) lprintf (" %d", (long)ivenarg[i-'a']);
- lprc('.');
- if (iven[i-'a'] == OLANCE) c[LANCEDEATH]=1;
- else c[LANCEDEATH]=0;
- bottomline();
- return;
- }
- }
- }
-}
-
-/*
- common routine to say you don't have an item
- */
-ydhi (x)
-int x;
-{
- cursors();
- lprintf("\nYou don't have item %c!",x);
-}
-
-ycwi (x)
-int x;
-{
- cursors();
- lprintf("\nYou can't wield item %c!",x);
-}
-
-/*
- function to wear armor
- */
-wear ()
-{
- int i;
-
- while (1) {
- if ((i = whatitem("wear"))==ESC) return;
- if (i != '.') {
- if (i=='*') showwear(); else
- switch(iven[i-'a']) {
- case 0:
- ydhi(i);
- return;
- case OLEATHER:
- case OCHAIN:
- case OPLATE:
- case OSTUDLEATHER:
- case ORING:
- case OSPLINT:
- case OPLATEARMOR:
- case OELVENCHAIN:
- case OSSPLATE:
- if (c[WEAR] != -1) {
- lprcat("\nYou are already wearing some armor.");
- return;
- }
- c[WEAR]=i-'a';
- if (c[WIELD] == i-'a') c[WIELD] = -1;
- lprintf("\nYou put on your %s", objectname[iven[i-'a']]);
- if (ivenarg[i-'a']>0)
- lprintf (" +%d", (long)ivenarg[i-'a']);
- if (ivenarg[i-'a']<0)
- lprintf (" %d", (long)ivenarg[i-'a']);
- lprc('.');
- bottomline();
- return;
-
- case OSHIELD:
- if (c[SHIELD] != -1) {
- lprcat("\nYou are already wearing a shield.");
- return;
- }
- if (iven[c[WIELD]]==O2SWORD) {
- lprcat("\nYour hands are busy with the two handed "
- "sword!");
- return;
- }
- c[SHIELD] = i-'a';
- if (c[WIELD] == i-'a') c[WIELD] = -1;
- lprcat("\nYou put on your shield");
- if (ivenarg[i-'a']>0)
- lprintf (" +%d", (long)ivenarg[i-'a']);
- if (ivenarg[i-'a']<0)
- lprintf (" %d", (long)ivenarg[i-'a']);
- lprc('.');
- bottomline();
- return;
-
- default: lprcat("\nYou can't wear that!");
- };
- }
- }
-}
-
-/*
- function to drop an object
- */
-dropobj ()
-{
- int i, pitflag=0;
- char *p;
- long amt;
-
- p = &item[playerx][playery];
- while (1) {
- if ((i = whatitem("drop"))==ESC)
- return;
- if (i=='*')
- showstr();
- else {
- /* drop some gold */
- if (i=='.') {
- if (*p == OPIT) pitflag=1;
- if (*p && !pitflag) {
- lprcat("\nThere's something here already!");
- return;
- }
- lprcat("\n\n");
- cl_dn(1,23);
- lprcat("How much gold do you drop? ");
- if ((amt=readnum((long)c[GOLD])) <= 0) return;
- if (amt>c[GOLD]) {
- lprcat("\nYou don't have that much!");
- return;
- }
- if (amt<=32767) {
- *p=OGOLDPILE;
- i=(int)amt;
- }
- else if (amt<=327670L) {
- *p=ODGOLD;
- i=(int)amt/10;
- amt = 10L*i;
- }
- else if (amt<=3276700L) {
- *p=OMAXGOLD;
- i=(int)amt/100;
- amt = 100L*i;
- }
- else if (amt<=32767000L) {
- *p=OKGOLD;
- i=(int)amt/1000;
- amt = 1000L*i;
- }
- else {
- *p=OKGOLD;
- i=(int)32767;
- amt = 32767000L;
- }
- c[GOLD] -= amt;
- lprintf("You drop %d gold piece%s.",(long)amt,(amt==1)?"":"s");
- if (pitflag) {
- *p = OPIT;
- lprcat("\nThe gold disappears down the pit.");
- } else
- iarg[playerx][playery]=i;
- bottomgold();
- know[playerx][playery]=0;
- dropflag=1;
- return;
- }
- drop_object(i-'a');
- return;
- }
- }
-}
-
-/*
- * readscr() Subroutine to read a scroll one is carrying
- */
-readscr ()
-{
- int i;
-
- while (1) {
- if ((i = whatitem("read"))==ESC) return;
- if (i != '.') {
- if (i=='*')
- showread();
- else {
- if (iven[i-'a']==OSCROLL) {
- read_scroll(ivenarg[i-'a']);
- iven[i-'a']=0;
- return;
- }
- if (iven[i-'a']==OBOOK) {
- readbook(ivenarg[i-'a']);
- iven[i-'a']=0;
- return;
- }
- if (iven[i-'a']==0) {
- ydhi(i);
- return;
- }
- lprcat("\nThere's nothing on it to read."); return;
- } /* end else */
- }
- }
-}
-
-/*
- * subroutine to eat a cookie one is carrying
- */
-eatcookie ()
-{
- int i;
- char *fortune(), *p;
-
- while (1) {
- if ((i = whatitem("eat"))==ESC)
- return;
- if (i != '.')
- if (i=='*')
- showeat();
- else {
- if (iven[i-'a']==OCOOKIE) {
- lprcat("\nThe cookie was delicious.");
- iven[i-'a']=0;
- if (!c[BLINDCOUNT]) {
- if ((p=fortune(fortfile))!=0) {
- lprcat(" Inside you find a scrap of paper that says:\n");
- lprcat(p);
- }
- }
- return;
- }
- if (iven[i-'a']==0) { ydhi(i); return; }
- lprcat("\nYou can't eat that!"); return;
- }
- }
-}
-
-/*
- * subroutine to quaff a potion one is carrying
- */
-quaff ()
-{
- int i;
-
- while (1) {
- if ((i = qwhatitem()) == ESC)
- return;
- if (i != '.') {
- if (i=='*')
- showquaff();
- else {
- if (iven[i-'a']==OPOTION) {
- quaffpotion(ivenarg[i-'a']);
- iven[i-'a']=0;
- return;
- }
- if (iven[i-'a']==0) {
- ydhi(i);
- return;
- }
- lprcat("\nYou wouldn't want to quaff that, would you? ");
- return;
- }
- }
- }
-}
-
-qwhatitem ()
-{
- int j, i=0;
- char tmp[IVENSIZE];
-
- cursors();
- for (j=0; j<IVENSIZE; j++)
- switch(iven[j]) {
- case OPOTION: tmp[i++] = j;
- };
- lprintf("\nWhat do you want to quaff [");
- if (i)
- for (j=0;j<i;j++)
- lprintf("%c",tmp[j] + 'a');
- lprintf(" * for all] ?");
- i=0;
- while (i>'z' || (i<'a' && i!='*' && !isspace(i) && i!=ESC ))
- i=getcharacter();
- if (i==ESC || isspace(i))
- lprcat(" aborted.");
- if (isspace(i)) i= ESC;
-
- return(i);
-}
-
-/*
- function to ask what player wants to do
- */
-whatitem (str)
-char *str;
-{
- int j=0, flag=0, i=0;
- int wld=0, q=0, r=0, w=0, e=0, d=0;
- char tmp[IVENSIZE];
-
- cursors();
- if (!strcmp(str, "wield"))
- wld = 1;
- else if (!strcmp(str, "quaff"))
- q = 1;
- else if (!strcmp(str, "read"))
- r = 1;
- else if (!strcmp(str, "wear"))
- w = 1;
- else if (!strcmp(str, "eat"))
- e = 1;
- else if (!strcmp(str, "drop"))
- d = 1;
-
- for (j=0; j<IVENSIZE; j++) {
- switch(iven[j]) {
- case OSWORDofSLASHING:
- case OHAMMER:
- case OSWORD:
- case O2SWORD:
- case OSPEAR:
- case ODAGGER:
- case OBATTLEAXE:
- case OLONGSWORD:
- case OFLAIL:
- case OSLAYER:
- case OLANCE:
- case OVORPAL:
- flag = 1; break; /* wield */
- case OPOTION:
- flag = 2; break; /* quaff */
- case OSCROLL:
- case OBOOK:
- flag = 3; break; /* read */
- case OPLATE :
- case OCHAIN:
- case OLEATHER :
- case ORING :
- case OSTUDLEATHER :
- case OSPLINT :
- case OPLATEARMOR :
- case OSSPLATE :
- case OSHIELD :
- case OELVENCHAIN :
- flag = 4; break; /* wear */
- case OCOOKIE:
- flag = 5; break; /* eat */
- default : flag = 0; break;
- }
- if (!d)
- switch (flag) {
- case 1 : if (wld)
- tmp[i++] = j;
- break;
- case 2 : if (q)
- tmp[i++] = j;
- break;
- case 3 : if (r)
- tmp[i++] = j;
- break;
- case 4 : if (w)
- tmp[i++] = j;
- break;
- case 5 : if (e)
- tmp[i++] = j;
- default : break;
- }
- else if (iven[j])
- tmp[i++] = j;
- }
- lprintf("\nWhat do you want to %s [", str);
- if (i) {
- for (j=0;j<i;j++)
- lprintf("%c",tmp[j] + 'a');
- lprintf(" ");
- }
- lprintf("* for all%s] ?", (wld) ? " - for none":"");
- i=0;
- while (!((i>='a' && i<='z') || isspace(i) || i=='*' || i==ESC || i=='.'
- || (i=='-' && wld)))
- i=getcharacter();
- if (i==ESC || isspace(i))
- lprcat(" aborted.");
- if (isspace(i))
- i = ESC;
- return(i);
-}
-
-
-
-/*
- * subroutine to get a number from the player
- * and allow * to mean return amt, else return the number entered
- */
-long readnum (mx)
-long mx;
-{
- int i;
- long amt=0;
-
- /* allow him to say * for all gold */
- if ((i=getcharacter()) == '*') {
- lprcat("*\n");
- return (mx);
- } else
- while (i != '\n') {
- lprc(i);
- if (i==ESC || isspace(i)) {
- lprcat(" aborted.");
- return(-1L); /* Return -1 to indicate abort. */
- }
- if ((i <= '9') && (i >= '0') && (amt<999999999L))
- amt = (long) (amt * 10L + i - '0');
- i = getcharacter();
- }
- lprc(i);
- return (amt);
-}
-
-do_create()
-{
- int t, a;
-
-gett:
- cursors();
- lprintf("\nType of item (Scroll/Potion/Monster/Other) : ");
- do {
- t=getcharacter();
- } while (isspace(t));
- switch(t) {
- case ESC: return;
- case 's':
- case 'S':
- cursors();
- cl_dn(1, 23);
- lprcat("Scroll Arg: ");
- a=readnum((long)MAXSCROLL);
- lprintf("createitem(OSCROLL, %d)", a);
- createitem(playerx,playery,OSCROLL, a);
- dropflag=1;
- return;
- case 'p':
- case 'P':
- cursors();
- cl_dn(1, 23);
- lprcat("Potion Arg: ");
- a=readnum((long)MAXPOTION);
- lprintf("createitem(OPOTION, %d)", a);
- createitem(playerx,playery,OPOTION, a);
- dropflag=1;
- return;
- case 'o':
- case 'O':
- cursors();
- lprcat("\n\n");
- cl_dn(1, 23);
- lprcat("Item : ");
- t=readnum(0);
- lprcat("Arg : ");
- a=readnum(0);
- lprintf("\ncreateitem(%d, %d)", t, a);
- createitem(playerx,playery,t, a);
- dropflag=1;
- return;
- case 'm':
- case 'M':
- cursors();
- lprcat("\n\n");
- cl_dn(1, 23);
- lprcat("Monst : ");
- t=readnum(0);
- lprintf("\ncreatemonster(%d)", t);
- createmonster(t);
- dropflag=1;
- return;
- default:
- goto gett;
- }
-}
Deleted: ularn/trunk/bill.c
===================================================================
--- ularn/trunk/bill.c 2009-03-10 11:25:46 UTC (rev 31)
+++ ularn/trunk/bill.c 2011-10-20 01:57:22 UTC (rev 32)
@@ -1,165 +0,0 @@
-/* bill.c */
-#include "header.h"
-#include "player.h"
-#include "extern.h"
-
-static char mail600[32];
-static int pid;
-long Taxes;
-
-letter1()
-{
- sprintf(mail600, "/tmp/#%dmail600",pid); /* prepare path */
- if (lcreat(mail600) < 0) {
- write(1,"can't write 600 letter\n",23);
- return(0);
- }
-
-lprcat("From: lr...@ul... (Ularn Revenue Service)\n");
-lprcat("Subject: undeclared income\n");
-lprcat("\n We heard you survived the caverns of Ularn. Let me be the");
-lprcat("\nfirst to congratulate you on your success. It is quite a feat.");
-lprcat("\nIt must also have been very profitable for you.");
-lprcat("\n\n The Dungeon Master has informed us that you brought");
-lprintf("\n%d gold piece%s back with you from your journey. As the",
- (long)c[GOLD], (c[GOLD]==1)?"":"s");
-lprcat("\ncounty of Ularn is in dire need of funds, we have spared no time");
-lprintf("\nin preparing your tax bill. You owe %d gold piece%s as", Taxes,
- (Taxes==1)?"":"s");
-lprcat("\nof this notice, and is due within 5 days. Failure to pay will");
-lprcat("\nmean penalties. Once again, congratulations. We look forward");
-lprcat("\nto your future successful expeditions.\n");
-
- lwclose();
- return(1);
-}
-
-letter2 ()
-{
- sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
- if (lcreat(mail600) < 0) {
- write(1,"can't write 600 letter\n",23);
- return(0);
- }
-
-lprcat("From: wi...@ul... (His Majesty King Wilfred)\n");
-lprcat("Subject: a noble deed\n");
-lprcat("\n I have heard of your magnificent feat and I, King Wilfred,");
-lprcat("\nhereby declare this day to be a national holiday. Furthermore,");
-lprcat("\nthree days hence, ye be invited to the castle to receive the");
-lprintf("\nhonour of %s of the Realm. Upon thy name shall it be written...",
- sex?"Knight":"Lady");
-lprcat("\nBravery and courage be yours.");
-lprcat("\nMay you live in happiness for evermore...\n");
- lwclose();
- return(1);
-}
-
-letter3 ()
-{
- sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
- if (lcreat(mail600) < 0) {
- write(1,"can't write 600 letter\n",23);
- return(0);
- }
-
- lprcat("From: end...@ul... (Count Endelford)\n");
- lprintf("Subject: You %s\n!", sex?"Bastard":"Bitch");
-lprcat("\n I heard (from sources) of your journey. Congratulations!");
-lprintf("You %s! With several attempts I have yet to endure the", sex?"Bastard":"Bitch");
-lprcat(" caves,\nand you, a nobody, make the journey! From this time");
-lprcat(" onward, be warned:\nupon our meeting you shall pay the price!\n");
- lwclose();
- return(1);
-}
-
-letter4 ()
-{
- sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
- if (lcreat(mail600) < 0) {
- write(1,"can't write 600 letter\n",23);
- return(0);
- }
- lprcat("From: ma...@ul... (Duke of Ularnty)\n");
- lprcat("Subject: High Praise\n");
-lprcat("\n With a certainty, a hero I declare to be amongst us! A nod of");
-lprcat("\nfavour I send to thee. Methinks Count Endelford this day of");
-lprcat("\nright breaths fire as of dragon of whom ye are slayer. I");
-lprcat("\nyearn to behold his anger and jealously. Should ye choose to");
-lprcat("\nunleash some of thy wealth upon those who be unfortunate, I,");
- lprcat("\nDuke Mainair, Shall equal thy gift also.\n");
- lwclose();
- return(1);
-}
-
-letter5 ()
-{
- sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
- if (lcreat(mail600) < 0) {
- write(1,"can't write 600 letter\n",23);
- return(0);
- }
- lprcat("From: st...@ul... (St. Mary's Children's Home)\n");
- lprcat("Subject: these poor children\n");
-lprcat("\n News of your great conquest has spread to all of Ularndom.");
-lprintf("\nMight I have a moment of a great %sman's time? We here at St.",
- sex?"":"wo");
-lprcat("\nMary's Children's Home are very poor and many children are");
-lprcat("\nstarving. Disease is widespread and very often fatal without");
-lprcat("\ngood food. Could you possibly find it in your heart to help us");
- lprcat("\nin our plight? Whatever you could give would help much.");
- lprcat("\n(your gift is tax-deductible)\n");
- lwclose();
- return(1);
-}
-
-letter6 ()
-{
- sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
- if (lcreat(mail600) < 0) {
- write(1,"can't write 600 letter\n",23);
- return(0);
- }
- lprcat("From: nd...@ul... (National Dianthroritis Society of Ularn)\n");
- lprcat("Subject: hope\n");
-lprcat("\nCongratulations on your successful expedition. We are sure much");
-lprcat("\ncourage and determination was needed on your quest. There are");
-lprcat("\nmany though, that could never hope to undertake such a journey");
-lprcat("\ndue to an enfeebling disease -- dianthroritis. We at the National");
-lprcat("\nDianthroritis Society of Ularn wish to appeal to your philanthropy in");
-lprcat("\norder to save many good people -- possibly even yourself or a lo...
[truncated message content] |
|
From: <br...@us...> - 2009-03-10 11:25:56
|
Revision: 31
http://ularn.svn.sourceforge.net/ularn/?rev=31&view=rev
Author: bress
Date: 2009-03-10 11:25:46 +0000 (Tue, 10 Mar 2009)
Log Message:
-----------
Update the sourcefoge logo
Modified Paths:
--------------
website/index.html
Modified: website/index.html
===================================================================
--- website/index.html 2008-12-16 20:20:58 UTC (rev 30)
+++ website/index.html 2009-03-10 11:25:46 UTC (rev 31)
@@ -42,7 +42,8 @@
<!--#exec cmd="cgi-bin/html-footer.pl \"my home page\" http://www.gweep.net/~mute/index2.html"-->
</p>
-<a href="http://sourceforge.net"><img
-src="http://sflogo.sourceforge.net/sflogo.php?group_id=182068&type=1"
-width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
+<a href="http://sourceforge.net/projects/ularn"><img
+src="http://sflogo.sourceforge.net/sflogo.php?group_id=182068&type=13"
+width="120" height="30" border="0" alt="Get Ularn at SourceForge.net. Fast,
+secure and Free Open Source software downloads" /></a>
</body></html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <br...@us...> - 2008-12-16 20:21:07
|
Revision: 30
http://ularn.svn.sourceforge.net/ularn/?rev=30&view=rev
Author: bress
Date: 2008-12-16 20:20:58 +0000 (Tue, 16 Dec 2008)
Log Message:
-----------
Add a proper check for curses
Modified Paths:
--------------
ularn/trunk/configure.ac
Modified: ularn/trunk/configure.ac
===================================================================
--- ularn/trunk/configure.ac 2008-08-15 03:31:45 UTC (rev 29)
+++ ularn/trunk/configure.ac 2008-12-16 20:20:58 UTC (rev 30)
@@ -12,12 +12,10 @@
AC_PROG_LN_S
AC_PROG_MAKE_SET
-# Checks for libraries.
-AC_CHECK_LIB(z, gzgets)
-for termlib in curses termcap termlib; do
- AC_CHECK_LIB(${termlib}, tgetent, [TERMLIBS="-l${termlib}"; break])
-done
+dnl Search for ncurses or curses
+AC_SEARCH_LIBS(wbkgdset, ncurses curses,,echo "*** The ncurses library is required!";exit 1)
+
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h sgtty.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/timeb.h termio.h unistd.h sys/time.h])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sc...@us...> - 2008-08-15 03:31:48
|
Revision: 29
http://ularn.svn.sourceforge.net/ularn/?rev=29&view=rev
Author: sconeu
Date: 2008-08-15 03:31:45 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
tty.c - fix bug in gettty where currttyb2 was uninitialized. This led to signals not being generated on BSD variants, because all tty signals (SIGQUIT, SIGINT) were set to ^@ (NUL).
Modified Paths:
--------------
ularn/trunk/tty.c
Modified: ularn/trunk/tty.c
===================================================================
--- ularn/trunk/tty.c 2008-08-15 03:27:57 UTC (rev 28)
+++ ularn/trunk/tty.c 2008-08-15 03:31:45 UTC (rev 29)
@@ -76,6 +76,7 @@
perror("gettty 2");
curttyb = inittyb;
+ curttyb2 = inittyb2;
ospeed = O_SPEED(inittyb);
setuptty();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sc...@us...> - 2008-08-15 03:28:00
|
Revision: 28
http://ularn.svn.sourceforge.net/ularn/?rev=28&view=rev
Author: sconeu
Date: 2008-08-15 03:27:57 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
player.c: Fix bug where dropping the Orb of Enlightenment lowered your DEX by 5 permanently. A missing break statement caused the code to fall into the Sword of Sharpness code.
Modified Paths:
--------------
ularn/trunk/player.c
Modified: ularn/trunk/player.c
===================================================================
--- ularn/trunk/player.c 2007-11-27 00:57:19 UTC (rev 27)
+++ ularn/trunk/player.c 2008-08-15 03:27:57 UTC (rev 28)
@@ -860,6 +860,7 @@
case OORB:
c[ORB]--;
c[AWARENESS]--;
+ break;
case OSWORDofSLASHING:
c[DEXTERITY] -= 5;
flag=1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|