Esempio n. 1
0
def command_taeffort(val_string):
    setter("ThingAction", "TA_EFFORT", 0, 255)(val_string)
    if world_db["ThingActions"][command_taid.id]["TA_NAME"] == "use":
        for ttid in world_db["ThingTypes"]:
            tt = world_db["ThingTypes"][ttid]
            tt["eat_vs_hunger_threshold"] = eat_vs_hunger_threshold(ttid)
Esempio n. 2
0
def command_taeffort(val_string):
    setter("ThingAction", "TA_EFFORT", 0, 255)(val_string)
    if world_db["ThingActions"][command_taid.id]["TA_NAME"] == "use":
        for ttid in world_db["ThingTypes"]:
            tt = world_db["ThingTypes"][ttid]
            tt["eat_vs_hunger_threshold"] = eat_vs_hunger_threshold(ttid)
Esempio n. 3
0
def command_ttlifepoints(val_string):
    setter("ThingType", "TT_LIFEPOINTS", 0, 255)(val_string)
    tt = world_db["ThingTypes"][command_ttid.id]
    tt["eat_vs_hunger_threshold"] = eat_vs_hunger_threshold(command_ttid.id)
Esempio n. 4
0
def command_ttlifepoints(val_string):
    setter("ThingType", "TT_LIFEPOINTS", 0, 255)(val_string)
    tt = world_db["ThingTypes"][command_ttid.id]
    tt["eat_vs_hunger_threshold"] = eat_vs_hunger_threshold(command_ttid.id)