Add minor module changes
parent
8b308fdd7c
commit
1c25c42790
|
@ -43,8 +43,9 @@ module Vrobot4::Server
|
|||
end
|
||||
|
||||
def c_modr m, argv
|
||||
check_args argv, "S"
|
||||
check_args argv, "S", "S"
|
||||
m.serv.drop_mod argv[0]
|
||||
load argv[1], true if argv.length > 1
|
||||
m.serv.load_mod argv[0]
|
||||
end
|
||||
|
||||
|
|
|
@ -34,10 +34,10 @@ class Mod_DoomRLA < Vrobot4::Module::Module
|
|||
name = argv.join(" ")
|
||||
w = @winfo.select {|wep| wep if wep["Name"].casecmp? name}[0]
|
||||
t = "%s %s damage\n" % [w["Damage"], w["DamageType"]]
|
||||
t << "%s shots" % [w["Shots"]] if w["Shots"].to_i > 1
|
||||
t << ", uses %s %s" % [w["AmmoUsage"], w["AmmoType"]] \
|
||||
t << "%s shots\n" % [w["Shots"]] if w["Shots"].to_i > 1
|
||||
t << "Uses %s %s\n" % [w["AmmoUsage"], w["AmmoType"]] \
|
||||
if w["AmmoType"] != "None"
|
||||
t << ", %s capacity" % [w["Capacity"]] if w["Capacity"]
|
||||
t << "%s capacity\n" % [w["Capacity"]] if w["Capacity"]
|
||||
t << "\n"
|
||||
t << "%s explosion damage, %s radius\n" %
|
||||
[w["ExplosionDamage"], w["ExplosionRadius"]] if w["ExplosionDamage"]
|
||||
|
|
Loading…
Reference in New Issue