Files
Polaris/code/game/objects/items/weapons/material/bats.dm
MistakeNot4892 618082f500 /atom New() => Initialize() [MDB IGNORE] (#8298)
* Find and replace argless atom New() to Initialize().

* Manual replacement of no-arg New() to Initialize().

* Manually replacing remaining New() overrides.

* Fixing linter issues with now-removed New() args.

* Tidying area init overrides.

* Porting Neb's atom subsystem.

* Trying to isolate init problems.

* Adjusting Init code post-test.

* Merging duplicate Initialize() procs.

* Merge resolution.
2022-01-04 18:47:57 -08:00

30 lines
1.0 KiB
Plaintext

/obj/item/weapon/material/twohanded/baseballbat
name = "bat"
desc = "HOME RUN!"
icon_state = "metalbat0"
base_icon = "metalbat"
throwforce = 7
attack_verb = list("smashed", "beaten", "slammed", "smacked", "struck", "battered", "bonked")
hitsound = 'sound/weapons/genhit3.ogg'
default_material = "wood"
force_divisor = 1.1 // 22 when wielded with weight 20 (steel)
unwielded_force_divisor = 0.7 // 15 when unwielded based on above.
dulled_divisor = 0.75 // A "dull" bat is still gonna hurt
slot_flags = SLOT_BACK
//Predefined materials go here.
/obj/item/weapon/material/twohanded/baseballbat/metal/Initialize(var/ml)
..(ml, MAT_STEEL)
/obj/item/weapon/material/twohanded/baseballbat/uranium/Initialize(var/ml)
..(ml, MAT_URANIUM)
/obj/item/weapon/material/twohanded/baseballbat/gold/Initialize(var/ml)
..(ml, MAT_GOLD)
/obj/item/weapon/material/twohanded/baseballbat/platinum/Initialize(var/ml)
..(ml, MAT_PLATINUM)
/obj/item/weapon/material/twohanded/baseballbat/diamond/Initialize(var/ml)
..(ml, MAT_DIAMOND)