no recreation while working
parent
e6124f7982
commit
898e2eb229
1
api.lua
1
api.lua
|
@ -68,6 +68,7 @@ xpfw.player_set_attribute=function(player,attrib,val)
|
|||
local att_def=M.player[playername].attributes[attrib]
|
||||
local setvalue=math.min(att_def.max or math.huge,math.max(att_def.min or 0,val))
|
||||
pm:set_float(xpfw.prefix.."_"..attrib,setvalue)
|
||||
M.player[playername].flags[attrib]=1
|
||||
end
|
||||
|
||||
xpfw.player_ping_attribute=function(player,attrib)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
xpfw.prefix (Prefix for variable name) string "xp"
|
||||
xpfw.light_mean_weight (Weight factor for light value) int 5000 1 10000
|
||||
xpfw.light_mean_default (Weight factor for light value) int 11 0 14
|
||||
xpfw.mean_weight (Weight factor for calculating mean value) int 5000 1 10000
|
||||
xpfw.light_mean_weight (Weight factor for light value) int 5000 1 10000
|
||||
xpfw.light_mean_default (Weight factor for light value) int 11 0 14
|
||||
xpfw.mean_weight (Weight factor for calculating mean value) int 5000 1 10000
|
||||
xpfw.experience_max (Normal max value for experiences) int 20 10 100
|
||||
xpfw.swam_mean_weight (Weight factor for mean swimming experience) int 100 1 10000
|
||||
xpfw.walked_mean_weight (Weight factor for mean walking experience) int 100 1 10000
|
||||
xpfw.swam_recreation (Weight factor for mean swimming experience) int 200 1 10000
|
||||
xpfw.walked_recreation (Weight factor for mean walking experience) int 200 1 10000
|
||||
xpfw.dig_mean_weight (Weight factor for mean digging experience) int 10 1 10000
|
||||
xpfw.build_mean_weight (Weight factor for mean building experience) int 10 1 10000
|
||||
xpfw.dig_recreation (Weight factor for mean digging experience) int 40 1 10000
|
||||
xpfw.build_recreation (Weight factor for mean building experience) int 40 1 10000
|
||||
xpfw.swam_mean_weight (Weight factor for mean swimming experience) int 100 1 10000
|
||||
xpfw.walked_mean_weight (Weight factor for mean walking experience) int 100 1 10000
|
||||
xpfw.swam_recreation (Weight factor for mean swimming experience) int 30 1 10000
|
||||
xpfw.walked_recreation (Weight factor for mean walking experience) int 30 1 10000
|
||||
xpfw.dig_mean_weight (Weight factor for mean digging experience) int 10 1 10000
|
||||
xpfw.build_mean_weight (Weight factor for mean building experience) int 10 1 10000
|
||||
xpfw.dig_recreation (Weight factor for mean digging experience) int 30 1 10000
|
||||
xpfw.build_recreation (Weight factor for mean building experience) int 30 1 10000
|
||||
|
|
Loading…
Reference in New Issue