mirror of
https://github.com/evennia/evennia.git
synced 2025-10-29 19:35:56 +00:00
Fixed a strange case in the dummyrunner.
This commit is contained in:
parent
cf2b83ef0a
commit
d0d56ee5bf
@ -234,6 +234,9 @@ class DummyClient(telnet.StatefulTelnetProtocol):
|
||||
NLOGGED_IN += 1 # this is for book-keeping
|
||||
print "connecting client %s (%i/%i)..." % (self.key, NLOGGED_IN, NCLIENTS)
|
||||
self._loggedin = True
|
||||
else:
|
||||
# no login yet, so cmdlist not yet set
|
||||
return
|
||||
else:
|
||||
# we always pick a cumulatively random function
|
||||
crand = random.random()
|
||||
|
||||
@ -58,7 +58,7 @@ TIMESTEP = 2
|
||||
|
||||
# Chance of a dummy actually performing an action on a given tick.
|
||||
# This spreads out usage randomly, like it would be in reality.
|
||||
CHANCE_OF_ACTION = 0.05
|
||||
CHANCE_OF_ACTION = 1.0#0.05
|
||||
|
||||
# Chance of a currently unlogged-in dummy performing its login
|
||||
# action every tick. This emulates not all players logging in
|
||||
@ -240,15 +240,18 @@ def c_moves_s(client):
|
||||
# #(0.1, c_creates_button),
|
||||
# #(0.4, c_moves))
|
||||
## "normal player" definition
|
||||
ACTIONS = ( c_login,
|
||||
c_logout,
|
||||
(0.01, c_digs),
|
||||
(0.39, c_looks),
|
||||
(0.2, c_help),
|
||||
(0.4, c_moves))
|
||||
#ACTIONS = (c_login_nodig,
|
||||
# c_logout,
|
||||
# (1.0, c_moves_n))
|
||||
#ACTIONS = ( c_login,
|
||||
# c_logout,
|
||||
# (0.01, c_digs),
|
||||
# (0.39, c_looks),
|
||||
# (0.2, c_help),
|
||||
# (0.4, c_moves))
|
||||
# walking tester. This requires a pre-made
|
||||
# "loop" of multiple rooms that ties back
|
||||
# to limbo (using @tunnel and @open)
|
||||
ACTIONS = (c_login_nodig,
|
||||
c_logout,
|
||||
(1.0, c_moves_n))
|
||||
## "socializing heavy builder" definition
|
||||
#ACTIONS = (c_login,
|
||||
# c_logout,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user