Files

45 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# radiation_explosion.js — üst seviye kod
[← radiation_explosion.js](index.md) · [← Master](../../wiki.md)
Parça 2/3 · [önceki](_ust-seviye.md) · [sonraki](_ust-seviye-3.md)
```javascript
var PT_RAD = mappet.getParticleType("happyVillager"); // yeşil pırıltı
var PT_BLAST = mappet.getParticleType("largeexplode"); // patlama
var PT_HUGE = mappet.getParticleType("hugeexplosion"); // dev patlama
var PT_SMOKE = mappet.getParticleType("largesmoke"); // duman
var PT_SPELL = mappet.getParticleType("mobSpell"); // renkli bulut (radyasyon sisi)
var AIR = mappet.createBlockState("minecraft:air", 0);
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Kademeli radyasyon hasarı.
// n < RAD_PULSES : her pulsta canlılara 1 hasar + üstlerinden yeşil particle
// n == RAD_PULSES: bir anda 500 hasar (öldürücü darbe)
// Patlatan (caster) her zaman muaftır.
// ---------------------------------------------------------------------------
// Bir canlının gövdesinden yukarı doğru yeşil radyasyon parçacığı fışkırt
// ---------------------------------------------------------------------------
// Bir kabuğu (shell) yok et, sonra bir sonraki kabuğu bir tick sonra çağır.
// ---------------------------------------------------------------------------
// Kabuğun yüzeyine patlama/parçacık serp (küre kabuğunu örnekleyerek)
// ---------------------------------------------------------------------------
// Genişleyen yeşil radyasyon küresi dalgası (görsel).
// r = 1..RADIATION_RADIUS boyunca büyür, sonra tam küreyi birkaç kez pulslar.
// ---------------------------------------------------------------------------
```