home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Client: Fix inventory selection bug on inventory shrinking.
[plomrogue]
/
plugins
/
server
/
PleaseTheIslandGod.py
diff --git
a/plugins/server/PleaseTheIslandGod.py
b/plugins/server/PleaseTheIslandGod.py
index 2fb0f20cda6b385f32777a3be664dd26cfde67b4..6cbfdf4b844e5615574e171c5814b1308dda0a1f 100644
(file)
--- a/
plugins/server/PleaseTheIslandGod.py
+++ b/
plugins/server/PleaseTheIslandGod.py
@@
-85,10
+85,10
@@
def actor_pickup(t):
log("CAN'T pick up object: No storage room to carry more.")
def actor_pickup_test_hook(t, tid):
log("CAN'T pick up object: No storage room to carry more.")
def actor_pickup_test_hook(t, tid):
- from server.ai import eat_vs_hunger_threshold
tt = world_db["ThingTypes"][tid]
return not (t != world_db["Things"][0] and (tt["TT_TOOL"] != "food" or
tt = world_db["ThingTypes"][tid]
return not (t != world_db["Things"][0] and (tt["TT_TOOL"] != "food" or
- (tt["TT_TOOLPOWER"] <= eat_vs_hunger_threshold(t["T_TYPE"]))))
+ (tt["TT_TOOLPOWER"] <=
+ world_db["ThingTypes"][t["T_TYPE"]]["eat_vs_hunger_threshold"])))
def actor_drop(t):
from server.actions import actor_drop
def actor_drop(t):
from server.actions import actor_drop
@@
-211,7
+211,7
@@
def actor_move(t):
altar_msg_wait(100)
elif world_db["FAVOR_STAGE"] == 1 and world_db["GOD_FAVOR"] >= 100:
world_db["FAVOR_STAGE"] = 2
altar_msg_wait(100)
elif world_db["FAVOR_STAGE"] == 1 and world_db["GOD_FAVOR"] >= 100:
world_db["FAVOR_STAGE"] = 2
- log(altar_msg_
2
)
+ log(altar_msg_
1
)
id = id_setter(-1, "Things")
world_db["Things"][id] = new_Thing(world_db["PLANT_1"],
world_db["altar"])
id = id_setter(-1, "Things")
world_db["Things"][id] = new_Thing(world_db["PLANT_1"],
world_db["altar"])