Skip to content

Commit

Permalink
Add magnum rifle to treasure chests (#1026)
Browse files Browse the repository at this point in the history
* add snipers to treasure chests

* modified:   mods/ctf/ctf_map/maps

* modified:   mods/ctf/ctf_map/maps

* remove snipers from classic

* remove normal snipers from classic

* Update classes.lua

* Update init.lua

Co-authored-by: LoneWolfHT <[email protected]>
  • Loading branch information
olliy1or and LoneWolfHT authored Aug 17, 2022
1 parent 54cb7a6 commit a21d01d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mods/ctf/ctf_modes/ctf_mode_classes/classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ local class_props = {
disallowed_items = {
"ctf_ranged:rifle",
"ctf_ranged:smg",
"ctf_ranged:sniper_magnum",
},
},
support = {
Expand All @@ -34,6 +35,7 @@ local class_props = {
"ctf_ranged:smg",
"ctf_ranged:shotgun",
"ctf_melee:",
"ctf_ranged:sniper_magnum",
},
disallowed_items_markup = {
["ctf_melee:"] = "default_tool_steelsword.png^ctf_modebase_group.png",
Expand Down
7 changes: 4 additions & 3 deletions mods/ctf/ctf_modes/ctf_mode_classes/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ ctf_modebase.register_mode("classes", {
["default:shovel_steel"] = {rarity = 0.4, max_stacks = 2},
["default:axe_steel" ] = {rarity = 0.4, max_stacks = 2},

["ctf_ranged:pistol_loaded" ] = {rarity = 0.2 , max_stacks = 2},
["ctf_ranged:shotgun_loaded"] = {rarity = 0.05 },
["ctf_ranged:smg_loaded" ] = {rarity = 0.05 },
["ctf_ranged:pistol_loaded" ] = {rarity = 0.2 , max_stacks = 2},
["ctf_ranged:shotgun_loaded" ] = {rarity = 0.05 },
["ctf_ranged:smg_loaded" ] = {rarity = 0.05 },
["ctf_ranged:sniper_magnum_loaded" ] = {rarity = 0.05 },

["ctf_map:unwalkable_dirt" ] = {min_count = 5, max_count = 26, max_stacks = 1, rarity = 0.1},
["ctf_map:unwalkable_stone" ] = {min_count = 5, max_count = 26, max_stacks = 1, rarity = 0.1},
Expand Down

0 comments on commit a21d01d

Please sign in to comment.