CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.54k stars 4.16k forks source link

Magiclysm summoned lamp, medium error something about wind resistance #50872

Closed Xpyder closed 2 years ago

Xpyder commented 3 years ago

Describe the bug

when I summon a head equipped magic item (like atomic lamp that Techno Prepper starts with) outside then move a bit I get an error talking about missing wind resistance on the item of material type none

I'm not at home so I don't have the error up in front of me, but it should be reproducible

Steps To Reproduce

create Techno Prepper (magiclysm starting profession) Cast "Atomic Lamp" walk around outside this should trigger the error

Expected behavior

not getting an error

Screenshots

DEBUG : Called item::wind_resist on an item (|| magic lamp (4597 turns)) made of nothing!

FUNCTION : int item::wind_resist() const FILE : src/item.cpp LINE : 7461 VERSION : bea0650

Versions and configuration

don't have atm

Additional context

I'm guessing wind resistance was recently added and the magiclysm items haven't been updated yet

not sure if it happens with other summoned items but I tried Atomic Lamp (summoned headlamp) and Magic Light (summoned head candle)

actual-nh commented 3 years ago

Ping: @anothersimulacrum?

anothersimulacrum commented 3 years ago

The item probably lacks a material.

actual-nh commented 3 years ago

The item probably lacks a material.

That's what I suspected. Ping: @KorGgenT?

Xpyder commented 3 years ago

DEBUG : Called item::wind_resist on an item (|| magic lamp (4597 turns)) made of nothing!

FUNCTION : int item::wind_resist() const FILE : src/item.cpp LINE : 7461 VERSION : bea0650

hexagonrecursion commented 3 years ago

I got this error while casting "Lamp" while still inside the evac shelter.

anothersimulacrum commented 3 years ago

The item simply needs to be assigned a material.